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

Back Button to Main Time Line

New Here ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

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!!

 

Views

79

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

 

this.parent.gotoAndStop(0);

Votes

Translate

Translate

Report

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