Skip to main content
Line
Inspiring
October 29, 2020
Answered

HTML5 Canvas scripting question - movieclip to movieclip interaction

  • October 29, 2020
  • 2 replies
  • 285 views

Hi!

 

I have a movieclip with a button in it. I want the button to tell a movieclip named TriesRemainingMC on the maintimeline which is stopped on it's first frame to play.

 

I was thinking the code should be: 

 

function PumpkinDeath()
{
stage.TriesRemainingMC.play();

}

 

Thanks ahead for your reply,

Line

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer ClayUUID

The root timeline is exportRoot, not stage.

2 replies

ClayUUIDCorrect answer
Legend
October 29, 2020

The root timeline is exportRoot, not stage.

Line
LineAuthor
Inspiring
October 29, 2020

Thanks @ClayUUID 

That worked!

 

function PumpkinDeath()
{
exportRoot.TriesRemainingMC.play();

}

//Signature// I'm a creator. I love illustration, designing, animating , writing, voice overs, acting, making games .. Woo woo!