Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay A Frame in a Movie Clip

Status
Not open for further replies.

CaSpiRE

Technical User
Oct 12, 2003
2
US
Hi, I need to know how to (in a movie clip) Delay the first frame for about 5 seconds, then after the delay...play frames 2-5, then on frame 5 gotoandplay frame 1. I read the post that was kinda similiar but was for a button and said:
my_btn.onRelease = function(){
gotoAndStop(...);
wait = setInterval(paused,5000);
function paused(){
clearInterval(wait);
gotoAndStop(...)
}
}

But im not sure how I would modify this so it would work for me. I am not using a button. Thank you for your time and help.
--CaSpiRE
 
Nevermind, I found it. I used:
function playAgain() {
clearInterval(repeat);
gotoAndPlay(1);
}
//
repeat = setInterval(playAgain, 10000);
stop();

THANKS! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top