Is there any way to, when a user clicks on a certain mc, move the mc that is clicked to the top of it's respective layer?
EDIT: I'm using mx 2004
Printable View
Is there any way to, when a user clicks on a certain mc, move the mc that is clicked to the top of it's respective layer?
EDIT: I'm using mx 2004
Check out swapDepths:
http://www.adobe.com/livedocs/flash/...html#wp4000371
K.
I'm using about 19 mc's, not just two...
would I be able to
my_mc.getDepth() : 1
and then somehow send all the others down one?
If you just want to move the clip that was clicked on to the top, you could do something like this:
code:
my_mc.onRelease=function(){
this.swapDepths(99999);
}
K.
Ok, thanks, that works perfectly.