Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Sound > onID3 (Sound.onID3 handler) | |||
onID3 = function() {}
Invoked each time new ID3 data is available for an MP3 file that you load using Sound.attachSound() or Sound.loadSound(). This handler provides access to ID3 data without polling. If both ID3 1.0 and ID3 2.0 tags are present in a file, this handler is called twice.
Availability: ActionScript 1.0; Flash Player 7
The following example outputs the ID3 properties of the song1.mp3 file (which is in the same directory as the SWF file):
var my_sound:Sound = new Sound();
my_sound.onID3 = function() {
for (var prop in this.id3) {
trace(prop + ": " + this.id3[prop])
}
};
my_sound.loadSound("song1.mp3", true);
attachSound (Sound.attachSound method), id3 (Sound.id3 property), loadSound (Sound.loadSound method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002136.html