# Preloader not all the way to 100%

**URL:** <https://forum.kirupa.com/t/preloader-not-all-the-way-to-100/174028>\
**Category:** Uncategorized\
**Created:** [January 2, 2006, 2:13am UTC](https://forum.kirupa.com/t/preloader-not-all-the-way-to-100/174028 "2006-01-02T02:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [January 2, 2006, 2:13am UTC](https://forum.kirupa.com/t/preloader-not-all-the-way-to-100/174028/1 "2006-01-02T02:13:22Z")

</div>

I’m testing out a preloader here: [http://www.bluetorchmedia.com/flash\_test.htm](http://www.bluetorchmedia.com/flash_test.htm)

You’ll see that the progress bar doesn’t go all the way to the right of the logo before it loads the photo.

Here is the as:

```auto

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

```

Just basically ripped it from a tut on kirupa.

On another note, how could i get the logo and load bar to fade out once the load bar hits 100%?

:puzzle:
