Posted By

marc0047 on 08/12/06


Tagged

time actionscript timeline setInterval timer


Versions (?)

Stop n' go slideshow like function


 / Published in: ActionScript
 

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

A single function that performs "stop & go" slideshow actions called stopngo(). Works in conjuction with the movieclip prototype version of time().

  1. MovieClip.prototype.stopngo = function(delay) {
  2. this.stop();
  3. this.time(commence, delay, this);
  4. }
  5.  
  6. MovieClip.prototype.commence = function(clip) {
  7. clip.time();
  8. clip.play();
  9. }

Report this snippet  

You need to login to post a comment.