Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HELP with timeline jumping

New Here ,
Jan 05, 2021 Jan 05, 2021

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
193
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2021 Jan 06, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2021 Jan 06, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2021 Jan 06, 2021
LATEST

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

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