Skip to main content
Participant
January 5, 2021
Question

HELP with timeline jumping

  • January 5, 2021
  • 1 reply
  • 217 views

In my Animate project (HTML 5) I have a button on the main timeline. When clicked it goes to a specific frame on the main timeline. That works fine. From there I have a different button that needs to trigger a movie clip AND a specific frame. 

 

For the life of me I am unable to figure this out. Can anyone help me out?

Let me know if you need more information. I would be happy to give you what ever you need.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 6, 2021

this.yourmovieclip.gotoAndStop("yourframelabel or number");

Tom5FC8Author
Participant
January 6, 2021

Thank you for responding. I entered in your suggestion, but it didn't work. Below is my code so you can see what I have. I selected my button (bt_white) and on that button I have the following code:

 

this.white_btn.addEventListener("click", fl_MouseClickHandler_14.bind(this));

function fl_MouseClickHandler_14()
{
_this.Rooftop.gotoAndStop("white_roof");
}

 

Rooftop is my MovieClip and "white_roof" is my label within my movie clip is "white_roof". Am I still missing something that I need to do in order for it to work?

kglad
Community Expert
Community Expert
January 6, 2021

the code should be attached to the frame that contains that button and movieclip