Programming Art Forums

Programming Art Tutorials >> Flash

Jump to first unread post. 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  
JeremyModerator
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 1 anonymous users are browsing this forum.

Moderator:  Programmingart, Brad, Jeremy 

Print Topic

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

Rating:
Topic views: 5253

Rate this topic

Jump to

Contact Us Programming Art Home

*
UBB.threads™ 6.5.1.1