Skip to main content
Participant
January 11, 2020
Question

HTML Canvas Add Managed Child use

  • January 11, 2020
  • 1 reply
  • 168 views

I saw this line of code in my exports and was wondering what it does. I traced it back to the MovieClip class using it to addManagedChild. Does anyone know what is the advantage of addManagedChild over the regular addChild?

 

this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_2},{t:this.shape_1},{t:this.shape}]}).wait(1));

 

 

This topic has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
January 11, 2020

Hi.

 

I'm not aware of this addManagedChild. It's not exposed in the documentation.

 

About the line of code you provided what I can tell you is that this is the way the Animate exporter translates the graphical timelines from the IDE to TweenJS code.

 

Hopefully someone else can give you better answers than mine.

 

 

Regards,

JC