|
|
Well Here Goes Nothing...
After about a few days of messing with loading id3 tags into flash I have come to find out that you can only use a id3's from a loaded mp3, if the mp3 is a event. Ok no problem, my problem now is how would I add a preloader to show the percent loaded of the audio? So far this is my code *see below*, the id3 information is loaded into a dynamic textbox with the instance name info. How would I add a preloader to the income mp3? Also the code below is set on a button, and not on a frame if that helps any.
PHP Code:
on (release) { myTrack = new Sound(); function Music() { myTrack.start(); if ((myTrack.getBytesLoaded() == myTrack.getBytesTotal()) && myTrack.duration>0) { info.text += "Song: "+myTrack.id3.songname+" "; info.text += "Artist: "+myTrack.id3.artist+" "; info.text += "Album: "+myTrack.id3.album+" "; clearInterval(poll); } } myTrack.loadSound("myfile.mp3", false); poll = setInterval(Music, 1000); }
Thanks in advance!!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-03-2003, 10:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|