# What's wrong with this preloader?

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-this-preloader/217337>\
**Category:** flash\
**Created:** [February 26, 2007, 3:40am UTC](https://forum.kirupa.com/t/whats-wrong-with-this-preloader/217337 "2007-02-26T03:40:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [February 26, 2007, 3:40am UTC](https://forum.kirupa.com/t/whats-wrong-with-this-preloader/217337/1 "2007-02-26T03:40:15Z")

</div>

normally when i do a preloader i did something simple like this:

this.onEnterFrame = function() {  
var ammount:Number = this.getBytesLoaded()/this.getBytesTotal()\*100;  
loader.loadbar.\_xscale = ammount;  
if (ammount == 100) {  
this.gotoAndPlay(2);  
}  
};

but now i’m trying something new but i just don’t get how it works. i’ve posted my flash file, it’s something i’ve gotten from kirupa, just trying to change it and try something new but it doesn’t work.  
please help!
