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

Navigation of animation stops working when using back arrow

New Here ,
Feb 26, 2018 Feb 26, 2018

Hello all,

I am looking for a solution for my presentation animation. I have this code to go to each stage in a presentation and want to use the arrows to go forward and backward to play each scene when clicked. The problem is when i go back with the arrows at the moment. The animation won't play again from what has already played once before. When i click the right arrow, the animation goes forward to where it was when i went back.

Help!

  1. stage.addEventListener(KeyboardEvent.KEY_DOWN, detectTextB);

function detectTextB(myevent: KeyboardEvent): void {

if (myevent.keyCode == 39) {

gotoAndPlay(19);

} else {

if (myevent.keyCode == 37) {

gotoAndStop("A");

}

}

}

259
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 , Feb 26, 2018 Feb 26, 2018

what you're not showing, eg, your other gotos are causing the problem.  ie, there's nothing you showed in message 1 that would cause the problem.

you can create a test version of your app with the code you showed from frame 18 (which i assume is frame A) to the end of that frame 19 to ? sequence.

Translate
Community Expert ,
Feb 26, 2018 Feb 26, 2018

where's the timeline stop after player from frame 19 and what frame is "A"?

is there any other goto's that execute on your timeline?

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
New Here ,
Feb 26, 2018 Feb 26, 2018

It's one animation brought in from AE,

frame 19 is next frame.

"A" is the label assigned to the begining frame of the animation.

The hope it to get a fully navigational presentation from the animation i have made. It is made to have stops, rewind and forward to each step. The problem im having is that the code once gone back a step, doesn't want to play the scene again, and skips to the later ones

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 ,
Feb 26, 2018 Feb 26, 2018

are there any other gotos that execute on your timeline?

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
New Here ,
Feb 26, 2018 Feb 26, 2018

oh sorry!

yes, multiple others than refer to different labels. A-F but on seperate action frames

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 ,
Feb 26, 2018 Feb 26, 2018
LATEST

what you're not showing, eg, your other gotos are causing the problem.  ie, there's nothing you showed in message 1 that would cause the problem.

you can create a test version of your app with the code you showed from frame 18 (which i assume is frame A) to the end of that frame 19 to ? sequence.

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