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
This procedure illustrates a simple case of associating an MFi sound file with an ActionScript
sound symbol on the main or movie clip Timeline so the Flash Lite test movie player can
recognize and play it.
To associate an MFi file with an ActionScript symbol on a main or movie clip Timeline:
In your sound authoring program, create an MFi sound file and save it as MySound.mld.
1
In Flash MX Professional 2004, create a new file and name it FlashLiteSound.fla. Save it in the
2
same directory as MySound.mld.
Select File > Publish Settings > Flash tab.
3
In the Version pop-up menu, select Flash Lite 1.0 and click OK.
Click OK.
Select Window > Other Panels > Common Libraries > Buttons. Select a button and drag it to
4
the Stage.
Select Insert > Timeline > Layer to create a new layer on the main Timeline. Select Modify >
5
Timeline > Layer Properties and change the name of the layer to Sound.
Click on the new Sound layer in the main Timeline and select Insert > Keyframe to add a new
6
Keyframe to the Sound layer.
Select Window > Other Panels > Common Libraries > Sounds to open the Sounds Library
7
window.
Select Window > Library to open the current document's Library window.
8
Select a sound in the Sounds Library window and drag it to the document Library window.
9
Associate the sound with the second keyframe in the Sound layer:
10
Select the sound from the Sound pop-up menu in the Properties inspector. (Select Windows
> Properties to display the Properties inspector if it is not already visible.)
Note: The sound may not appear immediately in the pop-up menu. You may have to select
another frame and then reselect the Down frame to get the sound to appear in the pop-up
menu.
18
Chapter 3: Sound
action within the
gotoAndPlay
event statement.
keyPress
Need help?
Do you have a question about the FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE SERVICE and is the answer not in the manual?
Questions and answers