Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
Development checklist
19
Vector graphics
Whenever possible, do not use borders in your vector graphics as this greatly diminishes the 
number of rendered lines.
Optimizing ActionScript
Because of CPU limitations, you should follow these general guidelines when developing 
ActionScript for Flash Lite content deployed on mobile phones:
Keep the ActionScript as simple as possible.
Limit the number of loops that you use and the amount of code that each loop contains.
Stop frame-based looping as soon as it is no longer needed.
Avoid string and emulated array processing—it can be extremely CPU intensive.
Note: Flash 4 ActionScript does not support arrays. However, they can be emulated using the 
eval()
 function. For more information, see Macromedia TechNote 14219, “How to use Eval to 
emulate an array,” at 
 (English) 
 (Japanese).
Device speed and frames per second
If the project contains static images, it’s not likely that the device processor speed will be an issue. 
The complexity of Flash requires some important trade-offs when developing content for mobile 
phones. Until mobile phones have faster processors and there are improvements to other internal 
components, you must make adjustments to provide an experience that does not appear sluggish 
to users; otherwise, they won’t use the application. 
Try to avoid full-screen wipes, fades, and animations. Remember that updating many pixels at a 
time can be slow, depending on the content. The performance of your Flash application depends 
on the number of open applications, available phone memory, processor speed, and screen 
resolution.
Development checklist
When you develop Flash content for mobile phones, make sure to check the following items:
Does the Flash content work?
Is the Flash content intuitive and easy to interact with?
Does the Flash content load data and SWF files without any problems? 
Can you optimize the images or rewrite code to further reduce the file size and memory 
requirements while improving performance?
Are all bitmap images successfully decoded and rendered on the mobile phone?