# \[AS2\] Problems with loading bar

**URL:** <https://forum.kirupa.com/t/as2-problems-with-loading-bar/227446>\
**Category:** Uncategorized\
**Created:** [May 30, 2007, 12:13pm UTC](https://forum.kirupa.com/t/as2-problems-with-loading-bar/227446 "2007-05-30T12:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ezence](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Ezence](https://forum.kirupa.com/u/Ezence)\
**Post date:** [May 30, 2007, 12:13pm UTC](https://forum.kirupa.com/t/as2-problems-with-loading-bar/227446/1 "2007-05-30T12:13:15Z")

</div>

Hi All,

After taking a look at the below guide  
[http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

I’ve managed to get confused. My loading bar isn’t actually loading, I don’t believe I have done/changed anything that I shouldn’t have.

Currently I have

```auto

// bytes_loaded = Math.round(this.getBytesLoaded());
// bytes_total = Math.round(this.getBytesTotal());
// getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = 50;
// this.loadText = Math.round(getPercent*100)+"%";
// if (bytes_loaded == bytes_total) {
// this.gotoAndPlay(62);
// }

```

and I have given the movie clip loadbar an instance name of “loadBar”

So according to this my loadBar should only be 50% of its width? - But it just remains invisable.

Any ideas/suggestions? :goatee:
