# Stumped with preloader

**URL:** https://forum.kirupa.com/t/stumped-with-preloader/163908
**Category:** flash
**Created:** [September 27, 2005, 7:36am UTC](https://forum.kirupa.com/t/stumped-with-preloader/163908 "2005-09-27T07:36:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ultraloveninja](https://avatars.discourse-cdn.com/v4/letter/u/71e660/32.png) [@ultraloveninja](https://forum.kirupa.com/u/ultraloveninja)
#### Post date: [September 27, 2005, 7:36am UTC](https://forum.kirupa.com/t/stumped-with-preloader/163908/1 "2005-09-27T07:36:04Z")

</div>

well, i’m stumped.  
i can’t get this preloader to work. i test it out, and it hangs.  
i’ve tried to change my \_root to \_parent values and nada. it just shows 0% and does nothing.  
here’s the AS that i am using:

> 

onClipEvent (enterFrame) {  
loading = \_parent.getBytesLoaded();  
total = \_parent.getBytesTotal();  
percent -= (percent-((loading/total)_100))_.25;  
per = int(percent);  
percentage = per+“%”;  
loadBar.\_width = per;  
if (percent\>99) {  
\_parent.gotoAndStop(2);  
}  
}

i got it off a tutorial a while ago. it seems to work in other flash movies that i have created, but not on this one. i’ve even re-built it from scratch, and still nada.

anyways, and suggestions would be great. i think it’s just that i am tired and i can’t find my err.  
thanks.
