Skip to main content
Known Participant
January 23, 2008
Question

GoTo and Pause?

  • January 23, 2008
  • 1 reply
  • 333 views
Hi guys

Can anyone tell me how to change this script so instead of gotoAndStop on frame label 2, it pauses for 5 seconds on frame label 2 and then the animation continues to play?

on (release) {
gotoAndStop ("2") ;
}


Thanks
This topic has been closed for replies.

1 reply

Inspiring
January 23, 2008
you can use setTimeout to call some function after 5 seconds and the function continue the movie.
Here some example - 3 is the next frame for play. I forgot to add you must put this code into the frame that stop the movie and setTimeout call the function once then auto remove the setTimout you dont need to clear the timeout.