PDA

View Full Version : Make MC in back



itsmario
June 10th, 2007, 10:35 AM
I have two MC's in one layer and I want to be able to make the one in back go in front of the other on (release). How would I do this?

actionAction
June 10th, 2007, 03:08 PM
Let's say you have two mcs, one on top (top_mc) and one on bottom (bottom_mc) on the stage. Your code to bring the bottom_mc clip to the top would be:

on(release){
bottom_mc.swapDepths(top_mc);
}