# Vertical preloader

**URL:** https://forum.kirupa.com/t/vertical-preloader/207852
**Category:** Uncategorized
**Created:** [November 22, 2006, 3:28am UTC](https://forum.kirupa.com/t/vertical-preloader/207852 "2006-11-22T03:28:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![admsh](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@admsh](https://forum.kirupa.com/u/admsh)
#### Post date: [November 22, 2006, 3:28am UTC](https://forum.kirupa.com/t/vertical-preloader/207852/1 "2006-11-22T03:28:18Z")

</div>

i want to create a preloader with a bar that fills up vertically, from bottom to top. i have this basic preloader code:

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

loadBar is the preloader-bar movie clip.  
just changing “width” to “height” doesn’t do the trick - it’s vertical but starts from the centre and expands on both ends, and then goes much further then it really should.

what do i need to change? is this much more complicated then creating the horizontal bar?
