carolien
11-13-2004, 08:28 PM
Hello everybody,
I'm writing kind of a media player to play music (mp3) in Flash. I want to show the artist and the title of the mp3 that is kept in the ID3 tags of the mp3. I have no problem importing and playing the mp3, but I 'm still not able to get the ID3 tag information of the mp3.
I have only one frame and this is all the actionscript code within this frame. The mp3 plays, but I do not see the ID3 info.
firstSound = new Sound();
firstSound.onID3 = function() {
for (var prop in my_sound.id3) {
trace(prop+" : "+firstSound.id3[prop]);
}
};
firstSound.attachSound("firstSound02");
firstSound.start();
stop();Do you guys know what could be wrong ?
I'm writing kind of a media player to play music (mp3) in Flash. I want to show the artist and the title of the mp3 that is kept in the ID3 tags of the mp3. I have no problem importing and playing the mp3, but I 'm still not able to get the ID3 tag information of the mp3.
I have only one frame and this is all the actionscript code within this frame. The mp3 plays, but I do not see the ID3 info.
firstSound = new Sound();
firstSound.onID3 = function() {
for (var prop in my_sound.id3) {
trace(prop+" : "+firstSound.id3[prop]);
}
};
firstSound.attachSound("firstSound02");
firstSound.start();
stop();Do you guys know what could be wrong ?