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

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

261

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);

Votes

Translate

Translate
Contributor ,
Jan 21, 2020 Jan 21, 2020

Copy link to clipboard

Copied

LATEST
this.parent.gotoAndStop(30);

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