Copy link to clipboard
Copied
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!
function detectTextB(myevent: KeyboardEvent): void {
if (myevent.keyCode == 39) {
gotoAndPlay(19);
} else {
if (myevent.keyCode == 37) {
gotoAndStop("A");
}
}
}
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
are there any other gotos that execute on your timeline?
Copy link to clipboard
Copied
oh sorry!
yes, multiple others than refer to different labels. A-F but on seperate action frames
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now