Depthmanager.createclassobjectatdepth() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DepthManager.createClassObjectAtDepth()

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents