M > MovieClip.swapDepths |
![]() ![]() ![]() |
MovieClip.swapDepths
Availability
Flash Player 5.
Usage
myMovieClip
.swapDepths(
depth
)
myMovieClip
.swapDepths(
target
)
Parameters
target
The movie clip instance whose depth is swapped by the instance specified in myMovieClip
. Both instances must have the same parent movie clip.
depth
A number specifying the depth level where MovieClip
is to be placed.
Returns
Nothing.
Description
Method; swaps the stacking, or z order (depth level), of the specified instance (MovieClip
) with the movie specified by the target
parameter, or with the movie that currently occupies the depth level specified in the depth
parameter. 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.
See also
![]() ![]() ![]() |