Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
this.yourmovieclip.gotoAndStop("yourframelabel or number");
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
the code should be attached to the frame that contains that button and movieclip