Highlighted

Won't play next frame after movieclip is done

New Here ,
Apr 11, 2019

Copy link to clipboard

Copied

I have a movie clip that plays, and after its done I need the scene to go on to the next frame after that movie clip. Problem is, if I put a gotoAndPlay function at the end of the movie clip, it takes me to that frame of the movie clip instead of that frame on the global stage. Is there any way to get around this?

TOPICS
Discussions

Views

180

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

Won't play next frame after movieclip is done

New Here ,
Apr 11, 2019

Copy link to clipboard

Copied

I have a movie clip that plays, and after its done I need the scene to go on to the next frame after that movie clip. Problem is, if I put a gotoAndPlay function at the end of the movie clip, it takes me to that frame of the movie clip instead of that frame on the global stage. Is there any way to get around this?

TOPICS
Discussions

Views

181

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
Apr 11, 2019 0
Engaged ,
Apr 11, 2019

Copy link to clipboard

Copied

Hi,

If you are using HTML5 then try below...

If the movie clip is one level below the main timeline and you want it to resume playing on the main timeline then try this is on the last frame of the movie clip:

this.parent.play();

but if the movie clip is nested a few levels down and you want it to resume playing the main timeline then use:

exportRoot.play();

Hopefully this helps it to work.

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...
Apr 11, 2019 1
Adobe Community Professional ,
Apr 11, 2019

Copy link to clipboard

Copied

Indeed you always need to be careful with the scope of things.

The deeper you go the more comes in front of your play() event.

For example, if you have a movie clip into a movie clip into a movie clip, you would need to have

this.parent.parent.parent.play(); but in a case like that using exportRoot would be more direct.

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...
Apr 11, 2019 1