14
Chapter 2: Developing Content
Using ActionScript
Because of CPU limitations, you should adhere to the following general guidelines when
developing ActionScript for Flash Lite movies deployed on i-mode 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.
Interactive versus Inline content
Flash Lite movies can be viewed in the i-mode browser in one of two modes: Interactive or Inline.
The browser determines the mode used.
In Interactive mode, the user can view and interact with the Flash Lite movie. Generally, this
occurs when a Flash Lite movie is loaded directly into the browser without being embedded in
an i-mode compatible HTML web page or mixed with any other type of content. The browser
then sends all supported key events to Flash Lite, allowing content to access the network and
play sound.
If the movie’s display area is not the same as the browser’s display area, the browser re-sizes the
movie to fit the browser’s display area. No horizontal or vertical scrolling is required or possible.
The movie’s aspect ratio does not change.
Inline mode occurs when a Flash Lite movie is embedded in an i-mode compatible HTML page
that contains another Flash Lite movie or other HTML controls and objects. The browser does
not send any key events to Flash Lite, eliminating the possibility of interactivity. Because the
getURL()
function and event sound is only triggered by keypress events, Inline Flash movies
cannot access the network or play sound.
For Inline mode, the movie’s display size can be larger than the browser’s display area. The movie
is scaled so the movie’s width does not exceed the browser’s width. However, the movie’s height
may end up being larger than the browser’s height, in which case the entire browser page can be
scrolled vertically.
Summary of Contents for FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE...
Page 1: ...Flash Lite Authoring Guidelines for the i mode Service by NTT DoCoMo...
Page 4: ...4 Contents...
Page 6: ...6 Chapter 1 Introduction...
Page 24: ...24 Chapter 4 Testing Content...
Page 36: ...36 Appendix A Supported ActionScript...
Page 40: ...40 Appendix B Supported Properties...
Page 48: ...48 Appendix D References...