A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [AS2] setInterval - in progress?

  1. #1

    [AS2] setInterval - in progress?

    I'm wondering if anyone here has encountered a boolean or code that you could check if a setInterval is actually running, without writing an extra code of "running = true" type of code.

    Best example I could give if that I have a clock running via setInterval, ticking a second off the clock every 1000 ms with:
    TickTock = setInterval(ClockTick, 1000);

    So is there a way to call something that would essentially tell me "yes, the setInterval TickTock is in progress" ?

  2. #2
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Location
    Los Angeles, CA
    Posts
    685
    in an if statement, any object that is not [0, "0", false, "false", "", null] will resolve as true.

    PHP Code:
    if (TickTock){
        
    // do something


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