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

Parents and Children

Engaged ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

Hi Folks,

Now that AS3 is dead, I'm trying to convert all my animations but I was never a good coder to begin with, so here goes.

Many of my animations were a single frame with multiple movies on the frame.  So I might have a button in one movie call (?) another movie to perform some function.  Bad description, but here's what I mean:

 

nextButton1.addEventListener(MouseEvent.CLICK, toNext1);

function toNext1(event:MouseEvent):void
{
Object(this.parent).overviewText.alpha=0;
Object(this.parent).GovernerLine.gotoAndPlay("On");
Object(this.parent).Filter.gotoAndPlay("Purge");
}

 

Is there a way to do similar calls in Javascript?

Do I need to rebuild with every single object in the frame and make a very large timeline?

Something in between?

 

I'm sure I have a steep learning curve ahead.  Suggestions for flattening the curve anyone? 

 

Thanks!

 

Views

223

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 , Nov 02, 2020 Nov 02, 2020

AS3 and Canvas documents use the exact same hierarchy model.

https://helpx.adobe.com/animate/kb/as-to-html5.html

 

Votes

Translate

Translate
LEGEND ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

AS3 and Canvas documents use the exact same hierarchy model.

https://helpx.adobe.com/animate/kb/as-to-html5.html

 

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
Engaged ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

LATEST

Thanks!

I'll check the doc link to see if the commands I wrote will work.

 

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