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

48

Likes

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
Adobe Community Professional ,
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);

Likes

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