MACROMEDIA FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE SERVICE Manuallines

Summary of FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE SERVICE

  • Page 1

    Flash lite authoring guidelines for the i-mode service by ntt docomo.

  • Page 2

    Trademarks add life to the web, afterburner, aftershock, andromedia, allaire, animation powerpack, aria, attain, authorware, authorware star, backstage, bright tiger, clustercats, coldfusion, design in motion, director, dream templates, dreamweaver, drumbeat 2000, edje, ejipt, extreme 3d, fireworks,...

  • Page 3: Contents

    3 contents chapter 1: introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 about the i-mode service by ntt docomo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

  • Page 4

    4 contents.

  • Page 5: Chapter 1

    5 chapter 1 introduction macromedia has created a new profile of the flash player called macromedia ® flash ™ lite, designed for consumer mobile devices, including phones for the i-mode service by ntt docomo. This format is designed to run optimally on devices with limited memory, processor speed, a...

  • Page 6

    6 chapter 1: introduction.

  • Page 7: Chapter 2

    7 chapter 2 developing content starting with the 505i phones, the i-mode service by ntt docomo supports the ability to view flash lite movies. The same flash lite functionality is available on all 505i phones, regardless of manufacturer. This chapter describes considerations for creating flash lite ...

  • Page 8

    8 chapter 2: developing content emoji i-mode phones support special pictographic characters called emoji. The following characters are examples of emoji: these are encoded by replacing characters in the standard shift-jis table. As long as the phone’s font supports emoji encoded as standard shift-ji...

  • Page 9

    Actionscript and properties 9 • the geturl() function can only be called once per keypress, and can only be used for the http , mailto , https and tel protocols. Only the first geturl() call in a keypress statement block is executed; all subsequent geturl() calls in the same block are ignored. • a b...

  • Page 10

    10 chapter 2: developing content sound flash lite for 505i phones does not support the standard flash player audio formats—raw, adpcm or mp3. Instead, only mfi (melody format for i-mode) is supported. In addition, each manufacturer’s 505i phone supports the standard mfi format, plus its own propriet...

  • Page 11

    Performance optimization 11 performance optimization cpu speed in i-mode phones varies from model to model, and is typically much slower than current desktop computers. Therefore, it is extremely important to consider movie performance and optimization from the beginning of each project. The optimiz...

  • Page 12

    12 chapter 2: developing content using bitmaps although some i-mode phones may have more than 16 bits of color resolution, macromedia recommends optimizing bitmaps to 16 bits before importing them into flash mx professional 2004. Doing so reduces flash lite movie size and gives you more control over...

  • Page 13

    Performance optimization 13 select the use imported jpeg data checkbox to use the default compression quality specified for the imported image. To specify a new quality compression setting, deselect use imported jpeg data and enter a value between 1 and 100 in the quality text box. A higher setting ...

  • Page 14

    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 ...

  • Page 15: Chapter 3

    15 chapter 3 sound embedding sound in flash lite movies for i-mode phones the macromedia flash mx professional 2004 user guide for flash lite describes the general process and tools required to embed sound in flash lite movies running on a phone. This chapter contains additional information, includi...

  • Page 16

    16 chapter 3: sound associating an mfi sound file with an actionscript sound symbol this procedure illustrates a simple case of associating an mfi sound file with an actionscript sound symbol so the flash mx professional 2004 test movie player can recognize and play it. To associate an mfi file with...

  • Page 17

    Mfi sound substitution 17 9 associate the sound with the mysound.Mld file by doing the following: ■ select window > library and find the sound that you added earlier. Select the sound and right-click it to open the context menu. Select properties from the context menu. The sound properties dialog bo...

  • Page 18

    18 chapter 3: sound accessing sound on main and movie clip timelines sounds do not necessarily need to reside on a button timeline. In fact, there may be times when it is useful to access sound that resides on either the main timeline or a movie clip timeline. As described earlier, to successfully p...

  • Page 19

    Mfi sound substitution 19 11 link the sound with mysound.Mld: if the library window is not already open, select window > library and find the sound that you added earlier. Select the sound and right-click it to open the context menu. Select properties from the context menu. The sound properties dial...

  • Page 20

    20 chapter 3: sound note: you can also access sound that resides in movie 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 movie clip timeline: on(keypress...

  • Page 21: Chapter 4

    21 chapter 4 testing content test your flash lite movies frequently on actual 505i phones. This advice may sound obvious, but this step is often overlooked and is especially important for developing flash lite movies for i- mode phones. No matter how much phone emulation a developer does, the final ...

  • Page 22

    22 chapter 4: testing content to use the i-mode html simulator: 1 download and install the i-mode html simulator application from the docomo website (for a link to the website, see appendix d, “references,” on page 47 ). Follow the online instructions. Note the folder where the program files are ins...

  • Page 23

    Docomo’s i-mode html simulator 23 3 review the i-mode html simulator functions: ■ click function at the top of the simulator application window. The following pop-up menu appears: the following function menu options for testing your flash lite movies are available: open url enables you to type in th...

  • Page 24

    24 chapter 4: testing content.

  • Page 25: Appendix A

    25 appendix a supported actionscript this appendix lists the flash lite actionscript commands and any exceptions to the standard in flash lite for i-mode. Action name description support // (comment) comment; indicates the beginning of a script comment. Any characters that appear between the comment...

  • Page 26

    26 appendix a: supported actionscript (–) subtract operator (arithmetic); used for negating or subtracting. When used for negating, it reverses the sign of the numerical expression. When used for subtracting, it performs an arithmetic subtraction on two numerical expressions, subtracting expression2...

  • Page 27

    27 operator (comparison); compares two expressions and determines whether expression1 is less than expression2 (true), or whether expression1 is greater than or equal to expression2 (false). In flash lite (and flash 4), numeric operator and is only used for expressions and not strings. The following...

  • Page 28

    28 appendix a: supported actionscript >= (greater than or equal to) operator (comparison); compares two expressions and determines whether expression1 is greater than or equal to expression2 (true), or whether expression1 is less than expression2 (false). The following examples illustrate true and f...

  • Page 29

    operator in an if...

  • Page 30

    30 appendix a: supported actionscript & (string concatenation) operator; used for concatenating strings. Fully supported add operator; concatenates (combines) two or more strings. Fully supported and operator; performs a logical and operation. If both expressions evaluate to true, then the entire ex...

  • Page 31

    31 fscommand() action; allows the flash movie to communicate with the program hosting flash lite. Not supported ge (string greater than or equal) comparison operator; returns true if the string representation for expression1 is greater than or equal to the string representation for expression2; othe...

  • Page 32

    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 ifframel...

  • Page 33

    33 lt(string less than) operator (comparison); compares expression1 to expression2 and returns true if expression1 is less than or equal to expression2; otherwise, returns false. This action is string specific. The following examples illustrate true and false results for the lt operator: x =”amy”; y...

  • Page 34

    34 appendix a: supported actionscript on(event) handler; specifies the mouse event, or keypress that trigger an action. Partially supported. Events supported are keypress, press, release, rollover and rollout. Keys supported in flash lite for i- mode are: 0-9, *, # and select. Ord() string function;...

  • Page 35

    35 string() function; returns a string representation of the specified argument as follows: if x is boolean, the return string is true or false. If x is a number, the return string is a decimal representation of the number. If x is a string, the return string is x. If x is a movie clip, the return v...

  • Page 36

    36 appendix a: supported actionscript.

  • Page 37: Appendix B

    37 appendix b supported properties this appendix lists the flash lite actionscript properties and whether there are any exceptions in the flash list for i-mode. Properties description support / property; specifies or returns a reference to the root movie timeline. Functionality provided by this prop...

  • Page 38

    38 appendix b: supported properties _framesloaded property (read-only); the number of frames that have been loaded from a streaming movie. This property is useful for determining whether the contents of a specific frame, and all the frames before it, have loaded and are available locally in a user’s...

  • Page 39

    39 _soundbuftime property (global); establishes the number of seconds of streaming sound to prebuffer. Not supported _target property (read-only); returns the target path of the movie clip instance specified asargument. Fully supported _totalframes property (read-only); evaluates the movie clip spec...

  • Page 40

    40 appendix b: supported properties.

  • Page 41: Appendix C

    41 appendix c warning and error messages this appendix lists the possible information, warning, and error messages you might encounter when creating movies for flash lite for i-mode. Message identifier message explanation swfs016 detected loadmovie() - will be ignored. The flash player detected that...

  • Page 42

    42 appendix c: warning and error messages swfs021 _droptarget property not supported. The flash player detected that the swf movie contains a getproperty() or setproperty() actionscript command referring to the _droptarget property, which flash lite does not support. No modifications are made to the...

  • Page 43

    43 swfs035 _url property not supported. The flash player detected that the swf movie contains a getproperty or setproperty actionscript command referring to the _url property, which is not supported by flash lite. No modifications will be made to the device specific swf file - this is just a warning...

  • Page 44

    44 appendix c: warning and error messages swfs042 nellymoser sound found. The flash player detected that the swf movie contains nellymoser sound, which is not supported by the specified device’s flash player. No modifications will be made to the device-specific swf file - this is just a warning swfs...

  • Page 45

    45 ftpa005 the call to geturl() for was ignored because there was more than one request per keypress. While testing the movie, multiple actionscript geturl () commands were called during a keypress event. Flash lite for i-mode only allows one geturl () command per keypress, so only the first command...

  • Page 46

    46 appendix c: warning and error messages ftps023 mp3 sounds not supported. While testing the movie, an mp3 sound was encountered. The specified device’s flash player does not support mp3 sound format. Ftps024 midi/mfi sounds not supported. While testing the movie, an midi/mfi sound was encountered....

  • Page 47: Appendix D

    47 appendix d references the following websites contain further information about creating content for flash lite and flash lite for i-mode: macromedia websites information and resources for developing content for flash lite and flash lite for i-mode is available at several macromedia websites. • ma...

  • Page 48

    48 appendix d: references.