www.webdeveloper.com
Results 1 to 3 of 3

Thread: Possible to add timer to custom objects

  1. #1
    Join Date
    Apr 2010
    Location
    Brooklyn NY
    Posts
    104

    Possible to add timer to custom objects

    I've got a bunch of similar objects that all have click events binded to them, and once they're dispatched they set off a timer which is set as a global variable

    iconID = setInterval(function() { doSomething(num) },0);

    is it possible to set a custom object to run a timer with it's own 'iconID' variable , because what I have now, if one object sets off the timer while another one is already running they mess each other up because the iconID is now specific to the more previous object

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654

  3. #3
    Join Date
    Apr 2010
    Location
    Brooklyn NY
    Posts
    104

    resolved

    Just what i was looking for thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles