• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML5 Canvas scripting question - movieclip to movieclip interaction

Explorer ,
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

151

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

LEGEND , Oct 29, 2020 Oct 29, 2020

The root timeline is exportRoot, not stage.

Votes

Translate

Translate
LEGEND ,
Oct 29, 2020 Oct 29, 2020

Copy link to clipboard

Copied

The root timeline is exportRoot, not stage.

Votes

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
Explorer ,
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!

Votes

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