# Percentage Preloader with Load Bar Tutorial Problem

**URL:** https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493
**Category:** Uncategorized
**Created:** [May 27, 2004, 2:50pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493 "2004-05-27T14:50:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lol](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lol](https://forum.kirupa.com/u/lol)
#### Post date: [May 27, 2004, 2:50pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/1 "2004-05-27T14:50:08Z")

</div>

[font=&quot]Hi,

First of all thanks for the nice tutorials.

I just have one question. Which is very stupid. I build it and it worked fine. Everything is really cool. But When I build a big bar 500 pix long it only load 1/3 of it, while the percentage was going all the way.

What did I do wrong again?

Thanks,  
lol[/font]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 3:09pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/2 "2004-05-27T15:09:44Z")

</div>

There is a line of code in there that corresponds to the length of your loadBar. In the tutorial the loadBar is 100 pix which can be confusing b/c then the code makes it look like 100 is a %. You want to change this line of code:

```auto

this.loadBar._width = getPercent*100;

```

Change the 100 to the length of your loadBar (500 in this case)

:hr:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 3:32pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/3 "2004-05-27T15:32:14Z")

</div>

thank you very much!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 3:33pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/4 "2004-05-27T15:33:18Z")

</div>

You’re welcome =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 4:08pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/5 "2004-05-27T16:08:30Z")

</div>

Just as a side note, that was explained in the tutorial :sigh:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 4:16pm UTC](https://forum.kirupa.com/t/percentage-preloader-with-load-bar-tutorial-problem/111493/6 "2004-05-27T16:16:32Z")

</div>

Yeah, but so many folk skip over that part. They see “100” and think it has something to do with 100%. Seen it before and I’m sure we’ll see it again!

:hr:
