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

Back Button to Main Time Line

New Here ,
Mar 23, 2021 Mar 23, 2021

Hi there…

I have the following problem: I have a simple infographic with multiple states on different keyframes in the Main Timeline. Each state is a separate movie clip. With a button click on frame 0 in the main timeline, I get to the next state with:

this.StartscreenPopUpButton_instance.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));

function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndStop(1);
}

 

In this new State (inside the movieclip timeline) I have created a closebutton. When I click this button I want to go back to frame 0 in the maintimeline. The code from above does not work. 

 

Thanks a lot!!

 

120
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 ,
Mar 23, 2021 Mar 23, 2021
LATEST

from a child (of the main timeline) movieclip timeline, use:

 

this.parent.gotoAndStop(0);

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