ID3 tags pb

hello

i am having troubles with my mp3 player…

this is the code

mySound = new Sound();
mySound.loadSound(“music01.mp3”,true);
_root.artist = mySound.ID3.TPE1

On _root i have a dynamic text box with the variable “artist” (without quotes). I want to display the TPE1 tag in that dyn box. But it doesn’t work. I’ve checked winamp and my ID3 tags are all set. What have i done wrong? All i see is “undefined”

TiA

:slight_smile:

Try using an [font=courier new]onID3[/font] handler. :stuck_out_tongue:

var my_sound = new Sound();
my_sound.onID3 = function() {
	artist = this.id3.TPE1;
};
my_sound.loadSound("music01.mp3", true);

ahh perfect thanks :slight_smile:

No problem. :wink: