Posted By

visualadvance on 04/23/09


Tagged

3 actionscrtip swapDepth setChildIndex


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

damarev
enajenkins
abbey
ithnkme
tspitzr
mecsekikrisztian


AS3: setChildIndex


 / 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/

  1. function swap(evt:MouseEvent):void
  2. {
  3. this.setChildIndex(MovieClip(evt.target), (this.numChildren - 1));
  4. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: on September 5, 2018

how to unlock my samsung galaxy s7 edge http://unlockmobiledevice.com/article/how-to-unlock-my-samsung-galaxy-s7-edge

You need to login to post a comment.