PDA

View Full Version : audio loading bar _mx



faceoff305
July 18th, 2003, 11:15 AM
(mx) I'm trying to make an audio progress bar. I'd like any help that can be given to help me accomplish this. I'm loading the songs externally when it is selected. I just need a bar to represent the song being loaded. I'm loading the songs from .mp3s:

track1= new Sound
track1.loadSound("morning.mp3",false);

all= track1.getBytesTotal();

bytes_loaded = Math.round(track1.getBytesLoaded());

getPercent = bytes_loaded/all;

this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if(bytes_loaded/all >=.59){
gotoAndPlay(3);
}

the loadBar is the name of the progress bar_mc...this is the script I'm using, but I'd scrap it for a script that works...

borispc
July 18th, 2003, 12:40 PM
How are you loading the songs externally, as swf or as real mp3s?

faceoff305
July 21st, 2003, 12:05 PM
as external mp3