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

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

Advertisement

Quick Links

Flash Lite Authoring Guidelines
for the i-mode Service by NTT DoCoMo

Advertisement

Table of Contents
loading

Summary of Contents for MACROMEDIA 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 If you access a third-party Web site mentioned in this guide, then you do so at your own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third-party sites.
  • Page 3: Table Of Contents

    Macromedia websites........
  • Page 4 Contents...
  • Page 5: Chapter 1 Introduction

    Content created for Flash Lite is most similar to Flash Player 4 content. The Macromedia Flash MX Professional 2004 User Guide for Flash Lite describes, in general, tools and guidelines for authors creating Flash Lite movies. This document contains authoring information specific to creating movies for i-mode phones.
  • Page 6 Chapter 1: Introduction...
  • Page 7: Chapter 2: Developing Content

    The 505i phones support Flash Lite in both English and Japanese. However, there are a few exceptions to the standard Flash Lite specification. To review the standard specification, see the Macromedia Flash MX Professional 2004 User Guide for Flash Lite. The exceptions to the standard are detailed in this document.
  • Page 8: I-Mode Compatible Html

    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-JIS characters, Flash Lite can display them. When authoring using Flash, you first need to ensure that you have Shift-JIS fonts installed on your desktop authoring system.
  • Page 9 Number() String() 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) or www.macromedia.com/go/flash_support_jp (Japanese).
  • Page 10: Sound

    Generally, for the 505i phones, this limit is not less than 200KB. Because Flash MX Professional 2004 does not provide a mechanism for checking a phone’s run-time memory consumption, Macromedia strongly recommends that you test all content on actual i-mode phones.
  • Page 11: Performance Optimization

    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 optimization recommendations for creating any Flash movie also apply to Flash Lite movies created for i-mode phones.
  • Page 12 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 the final output.
  • Page 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 produces a higher image quality, but also a larger file size, so adjust the value accordingly.
  • Page 14: Interactive Versus Inline Content

    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 function. For more information, see Macromedia TechNote 14219, “How to use Eval to eval() emulate an array,”...
  • Page 15: Chapter 3: Sound

    Flash Publish Settings dialog box to link the proxy sound file to an MFi sound file. Review the Macromedia Flash MX Professional 2004 User Guide for Flash Lite to understand the basics of sound substitution. The examples and tutorials in the user guide use MIDI (Musical Instrument Digital Interface) sound files, but the same principles apply for MFi files.
  • Page 16: Associating An Mfi Sound File With An Actionscript Sound Symbol

    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 an ActionScript symbol: In your sound authoring program, create an MFi sound file and save it as MySound.mld.
  • Page 17 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 box appears: For the Device sound option, use the file browser to find and select MySound.mld.
  • Page 18: Accessing Sound On Main And Movie Clip Timelines

    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 playback any sound it must be attached to a button, but with this method the frame on the main or movie clip Timeline that contains the sound symbol must be called using the...
  • Page 19 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 dialog box appears: For the Device sound option, use the file browser to find and select MySound.mld.
  • Page 20 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 “1”){ TellTarget(“myMovieClip”){ GotoAndPlay(2);...
  • Page 21: Chapter 4: Testing Content

    505i phones. For basic information on how to use Flash MX Professional 2004 to author and preview Flash Lite movies created for playing on phones, please refer to the Macromedia Flash MX Professional 2004 User Guide for Flash Lite .
  • Page 22 To use the i-mode HTML Simulator: 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 installed. Start the i-mode HTML Simulator application.
  • Page 23 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 the URL of the file you want the Simulator to test. You can also browse for a file on your local computer or use a bookmark.
  • Page 24 Chapter 4: Testing Content...
  • Page 25: Appendix A: Supported Actionscript

    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. Fully supported Any characters that appear between the comment delimiter // and the end-of-line character are interpreted as a comment.
  • Page 26 Action Name Description Support (–) subtract Operator (arithmetic); used for negating or subtracting. Fully supported 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 from expression1. Example 1: The following statement reverses the sign of the expression 2 + 3.
  • Page 27 Action Name Description Support < (less than) Operator (comparison); compares two expressions and Fully supported 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), < is a numeric operator and is only used for expressions and not strings.
  • Page 28 Action Name Description Support >= (greater than or Operator (comparison); compares two expressions and Fully supported equal to) 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 false results for >= comparisons: 10 >= 5;...
  • Page 29 Action Name Description Support || (logical OR) Operator (logical); evaluates expression1 and, if Fully supported expression1 is false, evaluates expression2. The result is (true) if either or both expressions evaluate to true; the result is (false) only if both expressions evaluate to false. The following example uses the || operator in an if statement.
  • Page 30 Action Name Description Support & (string Operator; used for concatenating strings. Fully supported concatenation) Operator; concatenates (combines) two or more strings. Fully supported Operator; performs a logical AND operation. If both Fully supported expressions evaluate to true, then the entire expression is true.
  • Page 31 Action Name Description Support fscommand() Action; allows the Flash movie to communicate with the Not supported program hosting Flash Lite. ge (string greater than Comparison operator; returns true if the string Fully supported or equal) representation for expression1 is greater than or equal to the string representation for expression2;...
  • Page 32 Action Name Description Support Action; evaluates a condition to determine the next Fully supported action in a movie. If the condition is true, Flash runs the statements that follow. ifFrameLoaded() Action; checks whether the contents of a specific frame Fully supported are available locally.
  • Page 33 Action Name Description Support lt(string less than) Operator (comparison); compares expression1 to Fully supported 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”;...
  • Page 34 Action Name Description Support on(event) Handler; specifies the mouse event, or keypress that Partially trigger an action. 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 Action Name Description Support String() Function; returns a string representation of the specified Not supported 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.
  • Page 36 Appendix A: Supported ActionScript...
  • Page 37: Appendix B: Supported Properties

    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 Fully supported to the root movie Timeline. Functionality provided by this property is similar to that provided by the property in Flash 5.
  • Page 38 Properties Description Support _framesloaded Property (read-only); the number of Fully supported 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 browser.
  • Page 39 Properties Description Support _soundbuftime Property (global); establishes the number Not supported of seconds of streaming sound to prebuffer. _target Property (read-only); returns the target Fully supported path of the movie clip instance specified as argument. _totalframes Property (read-only); evaluates the movie Fully supported clip specified as argument and returns the total number of frames in the movie.
  • Page 40 Appendix B: Supported Properties...
  • Page 41: Appendix C: Warning And Error Messages

    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() - The Flash player detected that the SWF will be ignored.
  • Page 42 Message Identifier Message Explanation SWFS021 _droptarget property not The Flash player detected that the SWF supported. movie contains a getProperty() ActionScript command setProperty() referring to the property, which _droptarget Flash Lite does not support. No modifications are made to the device-specific SWF file – this is just a warning.
  • Page 43 Message Identifier Message Explanation SWFS035 _url property not The Flash player detected that the SWF supported. 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 SWFS036 Detected loadMovie -...
  • Page 44 Message Identifier Message Explanation SWFS042 Nellymoser Sound The Flash player detected that the SWF found. 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 SWFS043 MP3 Sound found.
  • Page 45 Message Identifier Message Explanation FTPA005 The call to getURL() for While testing the movie, multiple ActionScript <URL> was ignored () commands were called during a getURL because there was more keypress event. Flash Lite for i-mode only than one request per allows one () command per keypress, getURL...
  • Page 46 Message Identifier Message Explanation FTPS023 MP3 sounds not While testing the movie, an MP3 sound was supported. encountered. The specified device’s Flash Player does not support MP3 sound format. FTPS024 MIDI/MFI sounds not While testing the movie, an MIDI/MFI sound supported.
  • Page 47: Appendix D References

    Information and resources for developing content for Flash Lite and Flash Lite for i-mode is available at several Macromedia websites. • Macromedia Flash MX Professional 2004 Designer and Developer website: http://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 websites.
  • Page 48 Appendix D: References...

This manual is also suitable for:

Flash mx professional 2004

Table of Contents