problem:
how to create a time delay prototype script.
situation:
click on buttons to run a display mc1 after 2 sec delay
//script on button//
on (press) {
_root.mc1.wait();
}
script needed:
MovieClip.prototype.wait = function() {
_root.mc1.gotoAndPlay(2);
this.clearInterval(this.setInterval(wait, 2000));
}
thanks