Hi everyone,
I have the following preloader code on the first frame of the main timeline:
stop();
myInterval = setInterval(preloader, 10);
function preloader () {
if (getBytesLoaded()>=getBytestotal()) {
play();
clearInterval(myInterval);
}
bar_mc._xscale = (getBytesLoaded()/getBytesTotal())*100;
percent_txt.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%"
}
My preloader is also on the first frame of the timeline and then my movie follows on afterward. For some reason the above code won’t work with the movie I’m working on. I’ve got the identical code on another movie I did a while back and it works on this one but won’t on the current one. Just wondered if anyone knew why this was happening. I mean if there’s no errors in the code, could something else be happening?
Appreciate any help.