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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stay on one frame

Status
Not open for further replies.

novice2004

Programmer
Feb 2, 2004
62
0
0
US
I use Flash 5.
As I understand I can stop playing frames in Flash
using "stop()";
Is there a way I can stay on one frame for 5 seconds and so delay playing next frames until 5 seconds expire?
Thank you.
 
You could just hardcode in 5 seconds worth of frames... but you could also do something like in frame 5 start an imbedded mc and have that mc send the parent movie on at the end of it (5 seconds later....)

[conehead]
 
In the frame where you currently have your stop() action.

Remove stop().

So if your stop() action was on frame 20 you would change the action on that frame to:

Code:
if (myTimer == null){
   myTimer = getTimer();
}

if (getTimer() >= myTimer+5000){
   gotoAndPlay(22)
}

On frame 21 you would simply add:
Code:
gotoAndPlay(20);

That's it. A 5 second timer.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top