ID3 Tags

ID3 is an audio file tagging format used in software and hardware around the world. The tag is a metadata container stored within MP3 audio files in a predictable format. The ID3Info class stores its properties.

To check that your file has an ID3 region, set a listener for the Event.ID3 event:

[code]

var sound:Sound = new Sound();
sound.addEventListener(Event.ID3, onMetaData);
function onMetaData(event:Event):void {
var metaData:ID3Info = Sound(event.target).id3;
// var metaData:ID3Info = event.target.id3;
for (var property in metaData) {
trace(property, metatData[property]);
}
}

[/code]

Some of the information stored in the ID3 region is the name of the artist, the name of the album, the song title, and the year it was recorded. This is particularly useful if you want to build an audio catalog.

You can read more about ID3 at http://www.id3.org/.


Posted

in

by

Tags: