|
Progress bar help (Flash CS3)
I have a pretty large flash file to display and I have a progress/loading bar, but how can I have the flash movie start before the progress bar reaches 100%? I guess what I am asking is.. can the movie start playing while the rest of it is still loading? My main goal is to not have the visitor sit there for a whole minute waiting for the progress bar to finish loading the entire movie. Maybe load 30% at first and then it starts, and as the movie is being displayed to the visitor the other 70% is loading without interrupting playback..?? and the progress bar dissapear after 30%? Is this possible? I'm using action script 3.0. Here is the code I have. How would I adjust it?
addEventListener(Event.ENTER_FRAME, loaderF);
function loaderF(e:Event):void{
var toLoad:Number = loaderInfo.bytesTotal;
var loaded:Number = loaderInfo.bytesLoaded;
var total:Number = loaded/toLoad;
if(loaded == toLoad) {
removeEventListener (Event.ENTER_FRAME, loaderF);
gotoAndPlay(2);
} else {
preloaders_mc.preloaderFill_mc.scaleX = total;
}
}
|