# Preloader

**URL:** <https://forum.kirupa.com/t/preloader/95603>\
**Category:** Uncategorized\
**Created:** [November 27, 2003, 3:48pm UTC](https://forum.kirupa.com/t/preloader/95603 "2003-11-27T15:48:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dog\_E](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dog_e/32/360_2.png) [@Dog\_E](https://forum.kirupa.com/u/Dog_E)\
**Post date:** [November 27, 2003, 3:48pm UTC](https://forum.kirupa.com/t/preloader/95603/1 "2003-11-27T15:48:27Z")

</div>

I made a preloader with the help of the tutorial on Kirupa. But i changed some things.  
I set the registration point of the bar to the up part. And i want the bar’s size not to get longer but smaller. So the preloader gets smaller each frame to the up. I hope you understood it. This is the actions. How should i change it?

* * *

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(13);  
}

* * *
