Where to add a child?
529
Where to add a child?
Once upon a time public class He { … } met she public class He { … private var girl731:She; } someday public class He { … this.girlfriend = girl731 as Girlfriend; } one night public class He { … this.girlfriend.addChild( this.clone() ); } because public class She extends DisplayObjectContainer { … } The DisplayObjectContainer is a subclass of the DisplayObject that can contain multiple DisplayObject’s. For add some of them need to call a method DisplayObjectContainer.addChild(myDisplayObject).