User Guide

487
20
CHAPTER 20
DepthManager class
ActionScript Class Name mx.managers.DepthManager
The DepthManager class allows you to manage the relative depth assignments of any
component or movie clip, including
_root. It also lets you manage reserved depths in a
special highest-depth clip on
_root for system-level services such as the pointer and tooltips.
In general, Depth Manager manages components automatically, using its own “shuffling”
algorithm. You do not need to use its APIs unless you are an advanced Flash developer.
The following methods constitute the relative depth-ordering API:
DepthManager.createChildAtDepth()
DepthManager.createClassChildAtDepth()
DepthManager.setDepthAbove()
DepthManager.setDepthBelow()
DepthManager.setDepthTo()
The following methods constitute the reserved depth space API:
DepthManager.createClassObjectAtDepth()
DepthManager.createObjectAtDepth()
NOTE
To use the DepthManager class for movie clip instances, you need to have a component
in the library or on the Stage, and use "import mx.managers.DepthManager" at the
beginning of your ActionScript.