# Little preloader issue

**URL:** <https://forum.kirupa.com/t/little-preloader-issue/172785>\
**Category:** Uncategorized\
**Created:** [December 17, 2005, 11:25pm UTC](https://forum.kirupa.com/t/little-preloader-issue/172785 "2005-12-17T23:25:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oli\_G](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Oli\_G](https://forum.kirupa.com/u/Oli_G)\
**Post date:** [December 17, 2005, 11:25pm UTC](https://forum.kirupa.com/t/little-preloader-issue/172785/1 "2005-12-17T23:25:58Z")

</div>

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
