Need to jump to parent timeline from child mouse click. (Canvas)

Explorer ,
Jan 17, 2020 Jan 17, 2020

Copy link to clipboard

Copied

I need to use a"ClickToGoToAndStopAtFrame...." but the button is in a movie clip. So I need to jump to the parent timeline of the movie that contains the button. Is there a simple addon to the snippet below to get it to jump up to the parent(Scene1) timeline?

 

My instant name is UIButton_3 and I am trying to go to frame 30 of the parent.

this.UIButton_3.addEventListener("click", fl_ClickToGoToAndStopAtFrame_12.bind(this));

function fl_ClickToGoToAndStopAtFrame_12()
{
this.gotoAndStop(30);
}

 

TOPICS
How to

Views

119

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

correct answers 1 Correct Answer

Contributor , Jan 21, 2020 Jan 21, 2020
this.parent.gotoAndStop(30);

Likes

Translate

Translate
Contributor ,
Jan 21, 2020 Jan 21, 2020

Copy link to clipboard

Copied

LATEST
this.parent.gotoAndStop(30);

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