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);
}
this.parent.gotoAndStop(30);
Copy link to clipboard
Copied
this.parent.gotoAndStop(30);