MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 633

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Example
The following example traces the ID3 properties of song.mp3 to the Output panel.
my_sound = new Sound();
my_sound.onID3 = function(){
for( var prop in my_sound.ID3 ){
trace( prop + " : "+ my_sound.ID3[prop] );
}
}
my_sound.loadSound("song.mp3", false);
See also
Sound.attachSound()
Sound.onLoad
Availability
Flash Player 6.
Usage
my_sound.onLoad = function(success){
// your statements here
}
Parameters
A Boolean value of
success
Returns
Nothing.
Description
Event handler; invoked automatically when a sound loads. You must create a function that
executes when the this handler is invoked. You can use either an anonymous function or a named
function (for an example of each, see
before you call
my_sound.loadSound()
See also
Sound.loadSound()
,
,
Sound.ID3
Sound.loadSound()
if
true
my_sound
Sound.onSoundComplete
.
has been loaded successfully, false otherwise.
). You should define this handler
Sound.onLoad
633

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents