ActionScript 2.0 Components Language Reference |
|
|
|
| DepthManager class > DepthManager.createChildAtDepth() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
movieClipInstance.createChildAtDepth(linkageName,depthFlag[,initObj])
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.
A reference to the object created. The return type is MovieClip.
Method; creates a child instance of the symbol specified by linkageName at the depth specified by depthFlag.
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);
|
|
|
|