User Guide
406 Chapter 6: Components Dictionary
DepthManager class
ActionScript Class Name mx.managers.DepthManager
The DepthManager class allows you 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 cursor or tooltips.
In general, the Depth Manager manages components automatically. 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()
Method summary for the DepthManager class
The following table lists the methods of the DepthManager class.
Method Description
DepthManager.createChildAtDepth() Creates a child of the specified symbol at the
specified depth.
DepthManager.createClassChildAtDepth() Creates an object of the specified class at the
specified depth.
DepthManager.createClassObjectAtDepth() Creates an instance of the specified class at a
specified depth in the special highest-depth clip.
DepthManager.createObjectAtDepth() Creates an object at a specified depth in the
highest-depth clip.
DepthManager.setDepthAbove() Sets the depth above the specified instance.
DepthManager.setDepthBelow() Sets the depth below the specified instance.
DepthManager.setDepthTo() Sets the depth to the specified instance in the highest-
depth clip.
CHAPTER 6
Components Dictionary