DepthManager.createChildAtDepth()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

movieClipInstance.createChildAtDepth(linkageName, depthFlag[, initObj])

Parameters

linkageName A linkage identifier. This parameter is a string.

depthFlag One of the following values: DepthManager.kTop, DepthManager.kBottom, DepthManager.kTopmost, DepthManager.kNotopmost. All depth flags are static properties of the DepthManger class. You must either reference the DepthManager package (for example, mx.managers.DepthManager.kTopmost), or use the import statement to import the DepthManager package.

initObj An initialization object. This parameter is optional.

Returns

A reference to the object created. The return type is MovieClip.

Description

Method; creates a child instance of the symbol specified by linkageName at the depth specified by depthFlag.

Example

The following example creates a minuteHand instance of the MinuteSymbol movie clip and places it in front of the clock:

import mx.managers.DepthManager;
minuteHand = clock.createChildAtDepth("MinuteSymbol", DepthManager.kTop);