background image

32

Appendix A:  Supported ActionScript

if

Action; evaluates a condition to determine the next 
action in a movie. If the condition is true, Flash runs the 
statements that follow.

Fully supported

ifFrameLoaded()

Action; checks whether the contents of a specific frame 
are available locally. Use ifFrameLoaded to start playing 
a simple animation while the rest of the movie downloads

Fully supported

int()

Function; converts a decimal number to the closest 
integer value.

Fully supported

le (string less than or 
equal)

Comparison operator; returns true if the string 
representation for expression1 is less than or equal to the 
string representation for expression2; otherwise, returns 
false. This action is string specific.

The following examples illustrate true and false results for 
the le operator: 
x =”Amy”;
y=”Fred”;
y le x;
// false
x le “Amy”;
// true
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. Normally, Flash Lite displays a single Flash movie 
(SWF file) and then closes. The loadMovie() action lets 
you display several movies at once or switch between 
movies without loading another HTML document.

Not supported 

loadMovieNum()

Action; loads a SWF into a level in Flash Lite while the 
originally loaded movie is playing.

Not supported 

loadVariables()

Action; reads data from an external file, such as a text file 
or text generated by a CGI script, Active Server Pages 
(ASP), or Personal Home Page (PHP), and sets the 
values for variables in a movie or movie clip.

Not supported 

loadVariablesNum()

Action; reads data from an external file, such as a text file 
or text generated by a CGI script, Active Server Pages 
(ASP), or PHP, or Perl script, and sets the values for 
variables in a Flash Lite level.

Not supported 

Action Name

Description

Support

Содержание FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE SERVICE

Страница 1: ...Flash Lite Authoring Guidelines for the i mode Service by NTT DoCoMo...

Страница 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...

Страница 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...

Страница 4: ...4 Contents...

Страница 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...

Страница 6: ...6 Chapter 1 Introduction...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 24: ...24 Chapter 4 Testing Content...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 36: ...36 Appendix A Supported ActionScript...

Страница 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...

Страница 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...

Страница 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...

Страница 40: ...40 Appendix B Supported Properties...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 48: ...48 Appendix D References...

Отзывы: