Percentage Preloader with Load Bar Tutorial Problem

[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]

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:


this.loadBar._width = getPercent*100;

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

:hr:

thank you very much!

You’re welcome =)

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

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: