Return to Snippet

Revision: 13250
at April 16, 2009 06:16 by ozke


Initial Code
public static function moveToTop(child:DisplayObject):void{
	(child.parent != null) ? child.parent.setChildIndex(child, child.parent.numChildren-1) : null;
}

Initial URL


Initial Description
Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);

Initial Title
Move a clip to the highest depth

Initial Tags
sort

Initial Language
ActionScript 3