Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Pause at a frame and continue to play

Participant ,
Jan 10, 2017 Jan 10, 2017

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.

389
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 10, 2017 Jan 10, 2017

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

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

Translate
Community Expert ,
Jan 10, 2017 Jan 10, 2017

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 10, 2017 Jan 10, 2017

Thanks!

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2017 Jan 10, 2017
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines