Revision: 29433
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 29, 2010 12:47 by Winkyboy
Initial Code
private function YourHandlerFunction(e:MouseEvent):void { e.currentTarget.parent.setChildIndex(DisplayObject(e.currentTarget), e.currentTarget.parent.numChildren - 1); e.currentTarget.startDrag(); }
Initial URL
Initial Description
Often used in conjunction with dragging elements around the screen, you may want the item most recently picked up to jump to the top of the "stack." Here's how to do it. In the event handler you create, you tell the item's parent to set its child's index to the highest number of its children.
Initial Title
AS3 GetNextHighestDepth
Initial Tags
Initial Language
ActionScript 3