/ Published in: ActionScript 3
This will swap a clip to the highest depth. I took this trick from an old co-worker. Just wanted to document it here for my own ease of use and styles "my" way.
Here is his original post: http://evolve.reintroducing.com/2008/02/27/as2-to-as3/as2-%E2%86%92-as3-depth-management/
Expand |
Embed | Plain Text
function swap(evt:MouseEvent):void { this.setChildIndex(MovieClip(evt.target), (this.numChildren - 1)); }
You need to login to post a comment.
