EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - About Accessing ID3 Properties in MP3 Files with Flash Player; Using Sounds with Sound Objects

MACROMEDIA FLASH 8-USING FLASH
678 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
316 Working with Sound
7. In the Property inspector, select a sound file from the Sound pop-up menu.
8. Select Event from the Synchronization pop-up menu.
To associate a different sound with each of the buttons keyframes, create a blank keyframe
and add another sound file for each keyframe. You can also use the same sound file and
apply a different sound effect for each button keyframe. For more information, see “Using
the sound-editing controls” on page 317.
Using sounds with Sound objects
You can use the Sound object in ActionScript to add sounds to a document and to control
sound objects in a document. Controlling sounds includes adjusting the volume or the right
and left balance while a sound plays. For more information, see “Creating sound controls in
Learning ActionScript 2.0 in Flash.
To use a sound in a Sound action, you assign an identifier string to the sound in the Linkage
Properties dialog box.
To assign an identifier string to a sound:
1. Select the sound in the Library panel.
2. Do one of the following:
Select Linkage from the options menu in the upper right corner of the panel.
Right-click (Windows) or Control-click (Macintosh) the sound name in the Library
panel, and select Linkage from the context menu.
3. Under Linkage in the Linkage Properties dialog box, select Export for ActionScript.
4. Enter an identifier string in the text box, and click OK.
About accessing ID3 properties in MP3
files with Flash Player
Macromedia Flash Player 7 and later supports ID3 v2.4 and v2.4 tags. With this version,
when you load an MP3 sound using the
attachSound() or loadSound() method, the ID3
tag properties are available at the beginning of the sound data stream. The onID3 event
executes when the ID3 data is initialized.

Table of Contents

Related product manuals