Using Sounds With Sound Objects; About Accessing Id3 Properties In Mp3 Files With Flash Player - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

In the sound layer, create a regular or blank keyframe to correspond with the button state to
4.
which you want to add a sound.
For example, to add a sound that plays when you click the button, create a keyframe in the
frame labeled Down.
Click the keyframe you created.
5.
Select Window > Properties.
6.
In the Property inspector, select a sound file from the Sound pop-up menu.
7.
Select Event from the Synchronization pop-up menu.
8.
To associate a different sound with each of the button's 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
editing controls" on page

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
Using ActionScript 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:
Select the sound in the Library panel.
1.
Do one of the following:
2.
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.
Under Linkage in the Linkage Properties dialog box, select Export for ActionScript.
3.
Enter an identifier string in the text box, and click OK.
4.

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
properties are available at the beginning of the sound data stream. The onID3 event executes
when the ID3 data is initialized.
Flash Player 6 (6.0.40.0) and later supports MP3 files with ID3 v1.0 and v1.1 tags. With ID3
v1.0 and v1.1 tags, the properties are available at the end of the data stream. If a sound does not
contain an ID3v1 tag, the ID3 properties are undefined. Users must have Flash Player 6
(6.0.40.0) or later for the ID3 properties to function.
206.
attachSound()

About accessing ID3 properties in MP3 files with Flash Player

or
method, the ID3 tag
loadSound()
"Using the sound-
205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents