# Preloaders

**URL:** https://forum.kirupa.com/t/preloaders/36660
**Category:** Uncategorized
**Created:** [November 30, 2003, 1:13am UTC](https://forum.kirupa.com/t/preloaders/36660 "2003-11-30T01:13:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![klutch](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@klutch](https://forum.kirupa.com/u/klutch)
#### Post date: [November 30, 2003, 1:13am UTC](https://forum.kirupa.com/t/preloaders/36660/1 "2003-11-30T01:13:36Z")

</div>

I read a tutorial on preloaders which gave me this actionscript text.

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(3);  
}

It worked however, instead of having the bar color load from left to right, I wish to have it from bottom to top. Do I change the “width” word to “height” and then make the registration point the bottom center?

Thank you  
🥚
