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

Pause at a frame and continue to play

Participant ,
Jan 10, 2017 Jan 10, 2017

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.

Views

288

Translate

Translate

Report

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().

Votes

Translate

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

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

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