[AS]bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
} else {
this.gotoAndPlay(2);
}[/AS]
That is my code, i have a main timeline that loads a MC in a Empty clip… in that clip I load 9 .swfs, that contain that code… each hold diff music clips, and are supposed to have the preloader until its loaded, then goto the 3rd frame which has the .wav file in it…
Works fine when i do it on my computer, problem is when i try and access it thorugh the web… the load bar either loads half way, and i have to stop it and click the play button again, then it plays… or sometimes i get a error, saying that the AS is slowing down flash or IE or something, and asks if i want to continue the script, i click yes that i do wat to continue it, and then it plays… im confused i have been tryign to figure this out for days now, or is there is a better way to load .wavs and compress them to lower file size, and have a preloader for them, please please let me know
thanks alot in advance