A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: getTimer() with one decimal place

Threaded View

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100

    getTimer() with one decimal place

    //as per usual I figured it out a minute after posting this thread\\
    //
    //method...
    //
    //
    PHP Code:
    textField Math.round(getTimer()/100)/10
    //
    //thanks anyhow (although I must admit the effect is rather jumpy\\






    Howdy

    PHP Code:
    textField getTimer(); 
    gives milliseconds, which is too busy for what I want, whereas

    PHP Code:
    textField Math.round(getTimer()/1000); 
    gives only the integer, I would prefer it if i could see the 10ths of seconds as well, like.....

    PHP Code:
    textField Math.round(getTimer()/100); 
    ....but that leaves out the decimal point.

    I could just draw in the decimal point, but that's rather sloppy, to say the least.

    Does anyone have a cunning plan how I can get around this one?
    Last edited by skalie; 11-25-2003 at 08:00 AM.

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