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

Components language reference
Table of Contents

Advertisement

DepthManager.createClassChildAtDepth()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
movieClipInstance.createClassChildAtDepth(className, depthFlag[, initObj])
Parameters
A class name. This parameter is a of type Function.
className
One of the following values:
depthFlag
DepthManager.kTopmost
of the DepthManger class. You must either reference the DepthManager package (for
example,
mx.managers.DepthManager.kTopmost
the DepthManager package.
An initialization object. This parameter is optional.
initObj
Returns
A reference to the created child. The return type is UIObject.
Description
Method; creates a child of the class specified by
.
depthFlag
Example
The following code draws a focus rectangle in front of all NoTopmost objects:
import mx.managers.DepthManager
this.ring = createClassChildAtDepth(mx.skins.RectBorder,
DepthManager.kTop);
The following code creates an instance of the Button class and passes it a value for its
property as an
initObj
import mx.managers.DepthManager
button1 = createClassChildAtDepth(mx.controls.Button, DepthManager.kTop,
{label: "Top Button"});
490
DepthManager class
DepthManager.kTop
,
DepthManager.kNotopmost
parameter:
,
DepthManager.kBottom
. All depth flags are static properties
), or use the
import
at the depth specified by
className
,
statement to import
label

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