![]() ![]() | |
Flash Player 6.0.79.
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.
Method; creates a child instance of the symbol specified by the linkageName parameter at the depth specified by the depthFlag parameter.
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);
![]() ![]() | |