Hi there.
So I’ve got a large movie (about 94k) that I need to preload. I used my usual Preloader script, which has been working great for me FOREVER and it just doesn’t go! If I take out the movieclip with the images (yes they’re optimized half to death) it loads fine.
Can anybody tell me why this might be? Here is what I’m doing:
Main content is a movie clip on second frame of main timeline.
There’s a stop action on second frame of main timeline.
This code is in first frame of main timeline:
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
myTextField.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}
Why oh why is this happening?
Anybody…please…
Thanks.