background image

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 2: ...third party Web sites that are not under the control of Macromedia and Macromedia is not responsible for the content on any linked site If you access a third party Web site mentioned in this guide th...

Page 3: ...n 11 Interactive versus Inline content 14 CHAPTER 3 Sound 15 Embedding sound in Flash Lite movies for i mode phones 15 MFi sound substitution 15 Associating an MFi sound file with an ActionScript soun...

Page 4: ...4 Contents...

Page 5: ...s i mode compatible HTML web pages Beginning with the 505i phones you can view Macromedia Flash Lite movies from the i mode browser You can also use the phones My Picture and Standby Screen applicatio...

Page 6: ...6 Chapter 1 Introduction...

Page 7: ...for the i mode browser These three keys correspond to the Shift Tab Tab and Enter keys on the desktop versions of the Flash Player The keys 0 1 2 3 4 5 6 7 8 9 and are also available These correspond...

Page 8: ...mobile phones As an example extensions include the tel URL protocol which is used to link to a phone number and let users initiate a phone call For information on i mode compatible HTML see Appendix...

Page 9: ...t sound An event sound can only be triggered to play when it is attached to a keypress event Only the first event sound in a keypress statement block is played and all other subsequent sounds in the s...

Page 10: ...a available to Flash Lite varies from phone model to phone model and across the applications featuring Flash Lite In order for a Flash Lite movie to look the best in the browser on all 505i phones a r...

Page 11: ...n i mode phone it is important to keep in mind the phone s CPU limitations The following guidelines can help prevent your movie from running slowly If you need to provide intense or complex animation...

Page 12: ...de phones it is sometimes better to use bitmaps instead of vectors because they require less CPU power to animate For example a road map of a large city would have too many complex shapes to scroll an...

Page 13: ...results of the file compression Compare the original file size to the compressed file size to determine if the selected compression setting is acceptable You can also globally adjust the compression...

Page 14: ...oaded 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 allow...

Page 15: ...bstitution Flash Lite does not support standard Flash Player audio formats Raw ADPCM or MP3 For 505i phones only the MFi Melody Format for i mode audio format is supported Since Flash MX Professional...

Page 16: ...d fla Save it in the same directory as MySound mld 3 Select File Publish Settings Flash tab The Publish Settings dialog box appears In the Version pop up list select Flash Lite 1 0 Click OK 4 Select W...

Page 17: ...find and select MySound mld Click OK 10 Select Control Test Movie to start the Flash Lite 1 0 test movie player 11 Click in the test movie player window Since Flash Lite ignores the mouse press the T...

Page 18: ...Save it in the same directory as MySound mld 3 Select File Publish Settings Flash tab In the Version pop up menu select Flash Lite 1 0 and click OK Click OK 4 Select Window Other Panels Common Librari...

Page 19: ...ns layer 14 Click on the first Keyframe on the Actions layer and in the Actions window enter the following script stop Note If the Actions window is not already open you will need to select Window Dev...

Page 20: ...ovie clip Timelines in much the same manner except you will need to use the tellTarget action in coordination with the gotoAndPlay action Here is an example of a script which targets a sound in a movi...

Page 21: ...m DoCoMo Flash Lite on the manufacturer s i mode phone The Macromedia Flash MX Professional 2004 test movie player recognizes and plays FlashLite movies When you select Control Test Movie or Control T...

Page 22: ...installed noted in step 1 and double click CSim exe The i mode HTML Simulator application window appears You can click the Simulator keys with your mouse and the keys will operate in the same way as t...

Page 23: ...Mark Save the location of the currently opened file and give it a shortcut name so you can readily load the file again at a later time using Open URL Edit BookMark Edit the location and shortcut name...

Page 24: ...24 Chapter 4 Testing Content...

Page 25: ...ested child movie clips variables or properties Fully supported string delimiter String delimiter when used before and after characters quotes indicate that the characters have a literal value and are...

Page 26: ...o statements have the same result x y x x y Fully supported multiply Operator arithmetic multiplies two numerical expressions Fully supported multiplication assignment Operator arithmetic assigns to e...

Page 27: ...tor comparison compares two expressions and determines whether expression1 is less than or equal to expression2 true or whether expression1 is greater than expression2 false The following examples ill...

Page 28: ...tests the opposite of the equality operator If expression1 is equal to expression2 the result is false The following examples illustrate true and false returns for the operator 3 10 true 3 3 false Fu...

Page 29: ...rator logical evaluates expression1 and if expression1 is true evaluates expression2 The result is true if both expressions evaluate to true the result is false if either expression evaluates to false...

Page 30: ...orted continue Action used to control code execution in loops Fully supported do while Action executes the statements inside the loop and then evaluates the condition of the loop for as long as the co...

Page 31: ...sses variables to another application at a defined URL When sending variables specify whether to load variables using a GET or POST method GET appends the variables to the end of the URL and is used f...

Page 32: ...x le y true Fully supported length String function returns the length of the specified string or variable name Fully supported loadMovie Action plays additional movies without closing Flash Lite Norm...

Page 33: ...ully supported ne string not equal Comparison operator compares two expressions for inequality and returns true if expression1 is not equal to expression2 otherwise returns false This action is string...

Page 34: ...ified in the value argument Fully supported removeMovieClip Action deletes a movie clip instance that was created with the duplicateMovieClip action Fully supported set Action assigns a value to a var...

Page 35: ...le tellTarget can be assigned to buttons that stop or start movie clips on the Stage or prompt movie clips to jump to a particular frame Fully supported toggleHighQuality Action turns anti aliasing on...

Page 36: ...36 Appendix A Supported ActionScript...

Page 37: ...lpha transparency value of the movie clip Valid values are 0 fully transparent to 100 fully opaque Fully supported _currentframe Property read only returns the number of the frame where the playhead i...

Page 38: ...level 0 The movie in level 0 sets the frame rate background color and frame size for all subsequently loaded movies Movies are then stacked in higher numbered levels above the movie in level 0 This p...

Page 39: ...are not visible property set to false are disabled Fully supported _width Property read only retrieves the width of the space occupied by a movie s content In Flash Lite _width is a read only propert...

Page 40: ...40 Appendix B Supported Properties...

Page 41: ...not support No modifications are made to the device specific SWF file this is just a warning SWFS018 Detected getURL restrictions may apply The Flash player detected that the SWF movie contains a getU...

Page 42: ...sh player detected that the SWF movie contains an ActionScript reference to the maxscroll property which Flash Lite does not support No modifications are made to the device specific SWF file this is j...

Page 43: ...ning SWFS038 Detected FSCommand restrictions may apply The Flash player detected that the SWF movie contains a FSCommand ActionScript command which has some runtime restrictions when played by the spe...

Page 44: ...contains MIDI sound which is supported by Flash Lite SWFS046 MFi Sound with manufacturer extension found The Flash player detected that the SWF movie contains MFi sound with certain manufacturer exten...

Page 45: ...property that Flash Lite for i mode does not completely support The command is performed but the results might not be as expected FTPA009 startDrag and stopDrag are not supported While testing the mo...

Page 46: ...cified device s Flash Player does not support MIDI MFI sound format FTPS025 PCM sounds not supported While testing the movie an PCM sound was encountered The specified device s Flash Player does not s...

Page 47: ...tp www macromedia com go devnet NTT DoCoMo websites Information on i mode i mode compatible HTML the i mode HTML Simulator 505i hardware characteristics and Emoji is available at several NTT DoCoMo we...

Page 48: ...48 Appendix D References...

Reviews: