hi all
i’ve got a preloader (drop_mc) that animates in over 140 odd frames, then has a flag titled ‘loadedcomplete’, which animates the preloader stuff off the screen.
here is my preloader code on the main timeline -
stop();
this.onEnterFrame = function() {
var bLoaded = this.getBytesLoaded();
var bTotal = this.getBytesTotal();
var pLoaded = bLoaded / bTotal;
drop_mc.anim_mc.solid_mc.preloader_mc.gotoAndStop(Math.round(drop_mc.anim_mc.solid_mc.preloader_mc._totalframes * pLoaded));
if (bLoaded == bTotal) {
drop_mc.gotoAndPlay(“loadedcomplete”)
}
};
But when it’s loaded, it doesn’t go to the flag ‘loadedcomplete’
Any ideas as to whats happening?
cheers