Hi.
The project i was working on loads a specific Mp3 and play it, then when the songs is over execute some actions, all this works fine, but i wanted it to display some of the Mp3 ID3 tags (song name and artist) mostly of the Mp3 codes i found online used xml files and stuff but mine was very simple…
I called the tags with “id3.TIT2” and “id3.TPE1” but i couldnt make it display into as a var to use a dynamic text. The method i found was make it “text” to a dynamic text called by the instance name and it worked…
the thing is… The text its only displayed when i load the SWF file into the web browser, it doesn’t show at all if i use the flash player application or use it as a Projector
Does anyone knows why? or how can i make it work right? …or a better way to display the tags
This is my music code:
coolTune = new Sound(soundLoader);
coolTune.loadSound("songs/song1.mp3",true);
coolTune.onID3 = function() {
songname.text += "Song: " + coolTune.id3.TIT2 + "
";
artistname.text += "Artist: " + coolTune.id3.TPE1 + "
";
}
coolTune.onSoundComplete = function() {
gotoAndPlay("Scene 3", 1);
}
The dynamic text on the scene are named “songname” and “artistname”