background image

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, including procedures, specific to embedding sound in Flash Lite 
movies for 505i phones.

Flash Lite content for 505i phones supports only the Melody Format for i-mode (MFi) audio 
format. Each manufacturer’s 505i phone supports the standard MFi format, plus its own 
proprietary extensions. 

MFi sound substitution

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 2004 does not natively support MFi, you must temporarily substitute a proxy 
sound in a recognized format such as MP3. You can use options in the Sound Properties dialog 
box and the 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.

The following procedure is specific to i-mode phones. 

Содержание 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...

Отзывы: