Display list utility functions.
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
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.