2Min
(Novice)
05/07/05 12:04 PM
Preloader Help

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)
05/17/05 07:43 PM
Re: Preloader Help

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!



Contact Us Programming Art Home

*
UBB.threads™ 6.5.1.1

Notice: due to an unmanageable amount of spam, the forums are closed to new members until further notice. You may still get support for any of your software products by emailing us at support@ at our website domain. Please feel free to browse existing posts as a guest as there is plenty of valuable information here. Thanks!