Programming Art Forums

Programming Art Tutorials >> Flash

Pages: 1
2Min
Novice


Reged: 05/07/05
Posts: 1
Preloader Help
      #555 - 05/07/05 12:04 PM

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.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Jeremy
Journeyman


Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
Re: Preloader Help
      #558 - 05/17/05 07:43 PM

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]


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  Programmingart, Brad 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 7374

Rate this topic

Jump to

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!