# FMX preloader problems

**URL:** <https://forum.kirupa.com/t/fmx-preloader-problems/130737>\
**Category:** Uncategorized\
**Created:** [December 8, 2004, 2:26am UTC](https://forum.kirupa.com/t/fmx-preloader-problems/130737 "2004-12-08T02:26:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cha\_siu\_bow](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@cha\_siu\_bow](https://forum.kirupa.com/u/cha_siu_bow)\
**Post date:** [December 8, 2004, 2:26am UTC](https://forum.kirupa.com/t/fmx-preloader-problems/130737/1 "2004-12-08T02:26:35Z")

</div>

i got this script out of a flash MX book but it doesnt seem to be working…im trying to create a preloader with a simple status bar that loads a scene within the same file. the scene does end up loading…but the status bar just says “100% completed” the whole time its loading the scene. is there a flaw in the script or an i doing something else wrong?

onClipEvent(enterFrame) {  
loaded = \_root.getBytesLoaded();  
total = \_root.getBytesLoaded();  
framesLoaded = Math.ceil((loaded/total)\*100);  
gotoAndStop(framesLoaded);  
status.text = framesLoaded+" % COMPLETED";  
if (framesLoaded\>=90) {  
nextScene();  
}  
}
