2Min
Novice
Reged: 05/07/05
Posts: 1
|
|
Hey, awesome preloader tutorial. I've been looking for that kind for a long time. I like the whole thing but I just wanted to know if there is a way to change the number of decimal places on the Kb loaded part. Thanks.
|
Jeremy
Journeyman
Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
|
|
Sure, easy to do! Change this line:
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
the 1000 used above makes 3 decimal places. Replace the 2 1000's with 100's or 10's to get two or one decimal place, respectively. You get the idea!
-------------------- JS [EOTT]
|