DepthManager.createChildAtDepth()

Availability

Flash Player 6.0.79.

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.

Description

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

Example

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

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