Skip to main content
jakobo32179469
Participating Frequently
February 26, 2018
Answered

Navigation of animation stops working when using back arrow

  • February 26, 2018
  • 2 replies
  • 322 views

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");

}

}

}

    This topic has been closed for replies.
    Correct answer kglad

    oh sorry!

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


    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.

    2 replies

    jakobo32179469
    Participating Frequently
    February 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

    kglad
    Community Expert
    Community Expert
    February 26, 2018

    are there any other gotos that execute on your timeline?

    jakobo32179469
    Participating Frequently
    February 26, 2018

    oh sorry!

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

    kglad
    Community Expert
    Community Expert
    February 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?