Skip to main content
Participant
December 19, 2019
Question

I'm trying to connect two movies with a button

  • December 19, 2019
  • 1 reply
  • 280 views

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.

This topic has been closed for replies.

1 reply

sumanr49634048
Known Participant
December 20, 2019

Hi, Please check below code

root = this;

function myFunction(){

root.movie1.gotoAndStop();

root.movie2.gotoAndPlay();

}

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

Participant
December 20, 2019

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)