A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Please excuse my ignorance!!!!

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    28
    Hi everyone, just a quick question.

    When Im using getbytesloaded() etc for my preloader I always get this huge number to about 17 decimal places.

    ie "45.768634620750720753% of 543442.76582535 loaded"

    How can I make so the variable shown is rounded up (or just with no decimal places)

    Hope someone can help,


    Thanks,

    Pete_M

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    79

    int(YourNumberHere)
    This will make integer of you floating number. Try!

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    28

    sorry -

    Sorry - So where do I put the int(??)


    strP = intPercent + "% of " +(intBytes/1000)


    intbytes = getbytestotal()
    intpercent = (getbytesloaded()/getbytestotal())*100 etc..

    Pete_M

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    28
    Sorry - Done it.

    Thanks alot for the help!!




    Pete_M

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center