Highlighted

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

Explorer ,
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);
}

 

this.parent.gotoAndStop(30);
TOPICS
How to

Views

84

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

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

Explorer ,
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);
}

 

this.parent.gotoAndStop(30);
TOPICS
How to

Views

85

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
Jan 17, 2020 0
Contributor ,
Jan 21, 2020

Copy link to clipboard

Copied

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
Reply
Loading...
Jan 21, 2020 0