Skip to main content
Participant
October 16, 2020
Question

Button jumps to the wrong frames

  • October 16, 2020
  • 2 replies
  • 605 views

Hello there! I have to ask if someone can help me with a problem. Im trying to create an interactive slide with animations. I've used HTML5 code and coded the buttons to skip to specific frame and play from this frame and stop at that frame. The problem is that when I try it out, the animations has to play to the end until I skip to the next step. If I press the "Next"-button before the animation has played, it just repeats from the beginning. What can I do to remedy this issue?

This topic has been closed for replies.

2 replies

JoãoCésar17023019
Community Expert
Community Expert
October 16, 2020

One approach for this kind of situation is to wrap each animation in a Movie Clip instance and then place each Movie Clip instance in a different frame of the main timeline.

 

Then you code your buttons to just go to the next and previous frames of the main timeline.

 

In this way you will be able to to navigate from animation to animation without worrying if they are finished or not.

JoãoCésar17023019
Community Expert
Community Expert
October 16, 2020

Hi.

 

Can you show us a screenshot or something else to help us better understand your issue?

 

Regards,

JC

Stina5C7AAuthor
Participant
October 16, 2020

Well, I wish I could, but this project is work related so I can't show it yet. I can only descibe the issue as good as I can. As I mentioned- The projects consists of several animations thats navigated between via arrow buttons. My problem is that if You click the forward button before an animation has played all the way to the end, it doesn't jump to the next animation, it just plays the current animation from the beginning.

Legend
October 16, 2020

Then your code is wrong. That's about as helpful a reply as anyone here can provide without seeing the code.