View Full Version : Setting Indices
Skywarka
06-04-2010, 11:33 PM
How do I set the Index of a MovieClip child from inside as AS3 .as file? I don't have a clue what kind of commmands to use. I have the variable rangeCircle inside the class i'm manipulating it from, and rangeCircle is a child of the RangeCirle class, which has the base class MovieClip, and I want to change its index/depth.
franky87
06-04-2010, 11:56 PM
If you want to change the depth of the Displayobject(Sprite, MovieClip and so on). You use addChildAt(child : Displayobject, index:int)
Take a look at the documentation. There are also example on how to use them.
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.