/ Published in: ActionScript 3
Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);
Expand |
Embed | Plain Text
public static function moveToTop(child:DisplayObject):void{ (child.parent != null) ? child.parent.setChildIndex(child, child.parent.numChildren-1) : null; }
Comments
Subscribe to comments
You need to login to post a comment.

I guess the easiest way is parent.addChild(child) ?
What if there is no parent?