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
www.macromedia.com/go/flash_support
(English)
www.macromedia.com/
go/flash_support_jp
(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?
Содержание 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...