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
addChild
invoked? i.e. Something is happening in, for example,DisplayObjectContainer
. - Let's say, I have MovieClip
A
andB
.B
hasA
as part of it. I calledaddChild (A)
inB
. InMainTimeline
andStage
, I don't calladdChild (B)
. Visually, sinceB
hasn't been added,A
won't be there too. However, doesA
is 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