-
on (press) {
_root.square3.swapDepths("_root.square" add _root:x);
_root:x = "3";
startDrag ("");
}
on (release) {
stopDrag ();
}
Please explain what is happening here :)
this is the action on the button inside the movie.. on the root there is the x=1 action on the first frame. There are three squares.. so when I click on the first one it goes way on the bottom rather then coming to the top
-
swap beteen the depth of square3 and squareX;
If square3 is at the bottom. sqaureX will go to the bottom. And the square3 will goto the z-order of the squareX.
If square3 is at the top. on swapDepth, squareX will goto the top. and square 3 will go down.
-
thanks.. I standed correct.. actually one of the buttons had the wrong target path so it wasn't working correctly.. but it was..