16
Chapter 2: Optimizing Content
Animation
When creating animated content for a mobile phone, it is important to keep in mind the phone’s
CPU limitations. The following guidelines can help prevent your Flash Lite content from
running slowly:
•
If you need to provide intense or complex animation, experiment with changing the quality
setting of the content. The default quality setting is Medium.
To change the quality setting in Flash MX Professional 2004, select File > Publish Settings, and
select the HTML tab. Select a quality setting from the Quality pop-up menu.
Because changing the quality setting might noticeably affect the visual quality of the Flash Lite
content, make sure to thoroughly test the SWF file.
•
You can also use ActionScript to control the rendering quality of a SWF file, by using either
the
_quality
property or the new FSCommand2
setQuality()
function.
For the
_quality
property, valid values are
LOW
,
MEDIUM
, and
HIGH
. The following code sets the
rendering quality to
LOW
:
_quality = "LOW";
For more information about the
setQuality
function, see
Chapter 5, “New FSCommand and
FSCommand2 commands”
.
•
Limit the number of simultaneous tweens.
•
Use Alpha effects on symbols sparingly, as they are very CPU intensive. In particular, it is
generally not a good idea to tween symbols that have alpha levels that are not fully opaque (less
than 100%).
•
Avoid intensive visual effects. These include large masks, extensive motion, alpha blending,
extensive gradients, and complex vectors.
•
Although animating with ActionScript may produce more desirable results, in general, you
should avoid unnecessary use of ActionScript because it can become processor intensive.
•
Experiment with combinations of tweens, key frame animations, and ActionScript-driven
movement to produce the most efficient results.
•
If possible, test animations frequently on your target phones.
Bitmap graphics
Macromedia recommends optimizing bitmap graphics to 16 bits before importing them into
Flash MX Professional 2004. Doing so reduces Flash Lite movie size and gives you more control
over the final output. Also, make sure that bitmaps are imported at the size they need to be in the
Flash Lite movie. Using larger than required bitmaps results in higher runtime memory
requirements.
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...