About the DepthManager class

ActionScript class namespace mx.managers.DepthManager

The DepthManager class adds functionality to the ActionScript MovieClip class that allows you to manage the relative depth assignments of any component or movie clip, including _root. It also allows you to manage reserved depths in a special highest-depth clip on the _root for system-level services like the cursor or tooltips.

The following methods compose the relative depth-ordering API:

The following methods compose the reserved depth space API:

Method summary for 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 that 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.