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

HTML Canvas Add Managed Child use

New Here ,
Jan 10, 2020 Jan 10, 2020

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));

 

 

TOPICS
Code
153
Translate
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 Expert ,
Jan 11, 2020 Jan 11, 2020
LATEST

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

Translate
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