HELP with timeline jumping

New Here ,
Jan 05, 2021

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.

TOPICS
Code, Timeline

Views

54

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Jan 06, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Tom5FC8 AUTHOR
New Here ,
Jan 06, 2021

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?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
kglad LATEST
Adobe Community Professional ,
Jan 06, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more