I'm aware that addChild (1) adds the object into a display container object, and (2) shows the object in the DisplayObjectContainer. What I want to know is what happens when an object is added into a DisplayObjectContainer?
To summarize my question is (are),
- Is there any magic happens when
addChildinvoked? i.e. Something is happening in, for example,DisplayObjectContainer. - Let's say, I have MovieClip
AandB.BhasAas part of it. I calledaddChild (A)inB. InMainTimelineandStage, I don't calladdChild (B). Visually, sinceBhasn't been added,Awon't be there too. However, doesAis exist (e.g. the memory allocated), even though it's not on theStage?
I have searched here and there in SO, but humongous amount of the questions asked related to mine are technical. I greatly appreciate any answer or pointer regarding my questions