Display list utility functions.
Available since
1.0.0
.Static methods
staticgetDisplayObjectDepthFromStage (target:DisplayObject):Int
Calculates how many levels deep the target object is on the display
list, starting from the stage. If the target object is the stage, the
depth will be 0
. A direct child of the stage will have a depth of 1
,
and it increases with each new level. If the object does not have a
reference to the stage, the depth will always be -1
, even if the
object has a parent.
Available since
1.0.0
.