/ Published in: ActionScript 3
Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static function moveToTop(child:DisplayObject):void{ (child.parent != null) ? child.parent.setChildIndex(child, child.parent.numChildren-1) : null; }