Skip to main content
Inspiring
January 10, 2017
Answered

Pause at a frame and continue to play

  • January 10, 2017
  • 1 reply
  • 449 views

Hi,

I'm trying to get my work to pause at frame 2 for 5 seconds and then auto play to frame 6.

The code I have just stops it from playing;

stop();

setTimeout(function(){

     nextFrame();

}, 500);

If I put a number in the nextFrame(), I get an "Incorrect number of arguments".

I'm new to flash, so simple is good for me!

Thanks.

This topic has been closed for replies.
Correct answer kglad

1. 500 is 500 milliseconds = .5 seconds so you want 5000.

2. use gotoAndStop(6) instead of nextFrame().

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 10, 2017

1. 500 is 500 milliseconds = .5 seconds so you want 5000.

2. use gotoAndStop(6) instead of nextFrame().

Inspiring
January 10, 2017

Thanks!

I'd put 500 just to make sure 5000 wasn't a really long time and forgot to change it haha.

kglad
Community Expert
Community Expert
January 10, 2017

you're welcome.