Skip to main content
rickhino
Inspiring
November 2, 2020
Answered

Parents and Children

  • November 2, 2020
  • 1 reply
  • 401 views

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!

 

    This topic has been closed for replies.
    Correct answer ClayUUID

    AS3 and Canvas documents use the exact same hierarchy model.

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

     

    1 reply

    ClayUUIDCorrect answer
    Legend
    November 2, 2020

    AS3 and Canvas documents use the exact same hierarchy model.

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

     

    rickhino
    rickhinoAuthor
    Inspiring
    November 2, 2020

    Thanks!

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