A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Stopping a getTimer at a given value

  1. #1

    Stopping a getTimer at a given value

    Hello,

    Why does this not stop at 250?

    code:

    onClipEvent (enterFrame) {
    _root.display = 0;
    if (_root.display < 250) {
    _root.display = (int(getTimer()/10));
    } else {
    _root.display = 250;
    }
    }



    Thanks in advance!

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    getTimer will always return the time since the SWF started playing (in milliseconds) - there is no way to stop it...

    If you need to check a set time, you will need to store it in a variable...

    K.

  3. #3
    actually i just need a variable that progressivly goes from 0 to 250 or whatever. I guess i could just ease an MC and get it's _x coordinates.

    thanks

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