Max-Mov > MovieClip.swapDepths
MovieClip.swapDepthsSyntax
anyMovieClip
.swapDepths(
depth
);
anyMovieClip
.swapDepths(
target
);
Arguments
target
The movie clip instance whose depth that is being swapped by the instance specified in anyMovieClip
. Both instances must have the same parent movie clip.
depth
A number specifying the depth level where the anyMovieClip
is to be placed.
Description
Method; swaps the stacking, or z, order (depth level) of the specified instance with the movie specified by the target
argument, or with the movie that currently occupies the depth
level specified in the argument. Both movies must have the same parent movie clip. Swapping the depth level of movie clips has the effect of moving one movie in front of or behind the other. If a movie is tweening when this method is called, the tweening is stopped.
Player
Flash 5 or later.
See also
_level