Adobe FLASH CS3 PRO User Manual page 305

Hide thumbs Also See for FLASH CS3 PRO:
Table of Contents

Advertisement

Accessing ID3 properties in mp3 files with Flash Player
Macromedia Flash Player 7 from Adobe and later supports ID3 v2.4 and v2.4 tags. With this version, when you load
an mp3 sound using the ActionScript 2.0
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.
For more information on using the ID3 properties, see
Reference.
About the ActionScript 2.0 onSoundComplete event
The
event of the ActionScript 2.0 Sound object lets you trigger an event in a Flash application
onSoundComplete
based on completing an attached sound file. The Sound object is a built-in object that lets you control sounds in a
Flash application. For more information, see Sound in the ActionScript 2.0 Language Reference. The
event of a Sound object is invoked automatically when the attached sound file finishes playing. If the sound
plete
is looped a specified number of times, the event is triggered when the sound finishes looping.
The Sound object has two properties that you can use with the
a read-only property representing the duration, in milliseconds, of the sound sample attached to the sound object.
The
property is a read-only property representing the number of milliseconds the sound has been playing
position
in each loop.
The
event lets you manipulate sounds in a many ways, such as the following:
onSoundComplete
• Creating a dynamic playlist or sequencer
• Creating a multimedia presentation that checks for narration completion before advancing to the next frame or scene
• Building a game that synchronizes sounds to particular events or scenes and transitions smoothly between
different sounds
• Timing an image change to a sound—for example, changing an image when a sound is halfway through at
playback time
or
attachSound()
loadSound()
(
id3
Sound.id3
onSoundComplete
method, the ID3 tag properties are
property) in the ActionScript 2.0 Language
event. The
duration
FLASH CS3
299
User Guide
onSoundCom-
property is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents