MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY User Manual - page 12
12
Chapter 3: Developing Content for Flash Lite
4
If the button is not selected on the Stage, click it once. In the Actions panel (select Window >
Development Panels > Actions if the panel is not visible), type the following:
on (release)
{
getURL("http://www.macromedia.com", _top);
}
5
Select Control > Test Movie.
Flash MX Professional 2004 starts the test movie player. You can now interact with the movie.
When you click the button, a browser window opens at http://www.macromedia.com.
6
Select File > Publish to save the SWF file as tutorial.swf.
Flash Lite sound
Flash Lite does not support standard Flash audio formats—Raw, ADPCM, or MP3. Instead, it
supports MIDI and MFi (Melody Format for i-mode) formats. Since Flash MX Professional 2004
does not natively support MIDI or MFi, you must temporarily substitute a proxy sound in a
recognized format such as MP3. To link your proxy sound file to a MIDI or MFi file you set
options in the Sound Properties dialog box and the Flash Publish Settings dialog box.
Tutorial II—Adding sound to your Flash Lite compatible movie
The following tutorial illustrates a simple case of associating an MIDI sound file with an
ActionScript sound symbol so the Flash MX Professional 2004 Flash Lite 1.0 test movie player
can recognize and play it.
To associate a MIDI sound file with an ActionScript sound symbol:
1
Create a MIDI sound file named
MySound.mid.
2
In Flash MX Professional 2004, create a new file and name it
FlashLiteSound.fla. Save it in the
same directory as MySound.mid.
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 Window > Other Panels > Common Libraries > Buttons. Select a button and drag it to
the Stage.
5
Double-click the new button. The Timeline should change to edit the button and display
frames named Up, Over, Down, and Hit.
6
Select Insert > Timeline > Layer to create a new layer. Select Modify > Timeline > Layer
Properties and change the name of the layer to
Sound.
7
Select the Down frame in the Sound layer and insert a keyframe.
8
Select a sound in the Sounds library window and drag it to the keyframe.