Highlighted

I'm trying to connect two movies with a button

New Here ,
Dec 19, 2019

Copy link to clipboard

Copied

I'm a new user to Animate. I've created two animations separately in Animate. One movie that interacts as planned, right up to the point where the user clicks on a button. When that happens, I want movie 1 to stop, and movie 2 to play in its place. I can't seem to make that work.

TOPICS
ActionScript, Code, How to, Import and export

Views

70

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

I'm trying to connect two movies with a button

New Here ,
Dec 19, 2019

Copy link to clipboard

Copied

I'm a new user to Animate. I've created two animations separately in Animate. One movie that interacts as planned, right up to the point where the user clicks on a button. When that happens, I want movie 1 to stop, and movie 2 to play in its place. I can't seem to make that work.

TOPICS
ActionScript, Code, How to, Import and export

Views

71

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
Dec 19, 2019 0
Explorer ,
Dec 19, 2019

Copy link to clipboard

Copied

Hi, Please check below code

root = this;

function myFunction(){

root.movie1.gotoAndStop();

root.movie2.gotoAndPlay();

}

root.mcBtn.addEventListener("click", myFunction);

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...
Dec 19, 2019 1
New Here ,
Dec 20, 2019

Copy link to clipboard

Copied

That might be a good start. I tried, and can't figure out exactly how to use that code in "Actions", or how to make it specific to my movie(s)Screen Shot 2019-12-20 at 1.03.39 PM.png

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...
Dec 20, 2019 0