I'm very novice when it comes to Flash, so bare with me. I'm trying to pull the ID3 tag information from an external mp3. I pulled this code directly from Macromedia's web site. My source code is below:
myTrack = new Sound();
function Music(){
myTrack.start();
if((myTrack.getBytesLoaded() == myTrack.getBytesTotal()) && myTrack.duration > 0){
tf.text += "Title = " + myTrack.id3.songname +"." + newline;
tf.text += "Artist = " + myTrack.id3.artist +"." + newline;
clearInterval (poll);
}
}
myTrack.loadSound("song.mp3", false);
poll = setInterval(Music, 1000);
It correctly pulls the two ID3 fields I want and I've tested them by using the "trace()" function. The problem I'm having is outputing the information to a dynamic text box. I want to have a seperate text box for the title of the song and for the artist of the song. Using this code, how do I do that? Please be very descriptive because I'm new at this. Thanks in advance!
myTrack = new Sound();
function Music(){
myTrack.start();
if((myTrack.getBytesLoaded() == myTrack.getBytesTotal()) && myTrack.duration > 0){
tf.text += "Title = " + myTrack.id3.songname +"." + newline;
tf.text += "Artist = " + myTrack.id3.artist +"." + newline;
clearInterval (poll);
}
}
myTrack.loadSound("song.mp3", false);
poll = setInterval(Music, 1000);
It correctly pulls the two ID3 fields I want and I've tested them by using the "trace()" function. The problem I'm having is outputing the information to a dynamic text box. I want to have a seperate text box for the title of the song and for the artist of the song. Using this code, how do I do that? Please be very descriptive because I'm new at this. Thanks in advance!