Creating and monitering setIntervals

/ Published in: ActionScript
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.