Copy link to clipboard
Copied
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.
1. 500 is 500 milliseconds = .5 seconds so you want 5000.
2. use gotoAndStop(6) instead of nextFrame().
Copy link to clipboard
Copied
1. 500 is 500 milliseconds = .5 seconds so you want 5000.
2. use gotoAndStop(6) instead of nextFrame().
Copy link to clipboard
Copied
Thanks!
I'd put 500 just to make sure 5000 wasn't a really long time and forgot to change it haha.
Copy link to clipboard
Copied
you're welcome.