HTML5 Canvas scripting question - movieclip to movieclip interaction

Community Beginner ,
Oct 29, 2020 Oct 29, 2020

Copy link to clipboard

Copied

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

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

Views

87

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
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Oct 29, 2020 Oct 29, 2020
The root timeline is exportRoot, not stage.

Likes

Translate

Translate
Adobe Community Professional ,
Oct 29, 2020 Oct 29, 2020

Copy link to clipboard

Copied

The root timeline is exportRoot, not stage.

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
community guidelines
Community Beginner ,
Oct 29, 2020 Oct 29, 2020

Copy link to clipboard

Copied

LATEST

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!

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
community guidelines