Thanks very much for the swap depths tutorial, it was a great help, but it didn’t migrate well to my .fla. I modified it so that it raises the MC to a top layer on mouseOver, and it worked, but doesn’t in my project:
I have 4 thumbnails which are set up as buttons. There’s a MC in the Over state which zooms the thumbnail. The issue is that the zooms are sometimes under the neighboring button. I know I can use swapDepths to fix it, but its not working.
Ive pasted the following code into the first frame of the button (CMAniButton is the button’s name)
onClipEvent (load) {
on (rollOver) {
_root.x += 4;
_root.CMAniButton.swapDepths(_root.x);
}
}
I’ve tried changing the object to the MC that the button uses for the zoom, but that didn’t work. I’ve pasted this AScript into the first frame of the button’s layer, also tried into the over state of the button, but neither works.
I’m new to AScript, so it’s likely an easy fix?
Thanks in advance.