User Guide
DepthManager.createClassObjectAtDepth() 491
DepthManager.createClassObjectAtDepth()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
DepthManager.createClassObjectAtDepth(className, depthSpace[, initObj])
Parameters
className A class name. This parameter is of type Function.
depthSpace One of the following values: DepthManager.kCursor,
DepthManager.kTooltip. All depth flags are static properties of the DepthManger class. You
must either reference the DepthManager package (for example,
mx.managers.DepthManager.kCursor), or use the import statement to import the
DepthManager package.
initObj An initialization object. This parameter is optional.
Returns
A reference to the created object. The return type is UIObject.
Description
Method; creates an object of the class specified by className at the depth specified by
depthSpace. This method is used for accessing the reserved depth spaces in the special
highest-depth clip.
Example
The following example creates an object from the Button class:
import mx.managers.DepthManager
myCursorButton = Detph.createClassObjectAtDepth(mx.controls.Button,
DepthManager.kCursor, {label: "Cursor"});