Posted By

marc0047 on 08/12/06


Tagged

time actionscript timeline timer


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

damarev
horizens


Creating and monitering setIntervals


 / Published in: ActionScript
 

URL: http://minus.ws/note/?p=94

Don't forget to insantiate with an object or with 'this'.

  1. MovieClip.prototype.time = function (func, delay, arg1, arg2, arg3) {
  2. clearInterval(this.waiter);
  3. this.waiter = setInterval(func, delay, arg1);
  4. }

Report this snippet  

You need to login to post a comment.