# MovieClip.swapDepths()

#### Availability

Flash Player 5.

#### Usage

    my_mc.swapDepths(depth)
    my_mc.swapDepths(target)

#### Parameters

`target` The movie clip instance whose depth is swapped by the instance specified in `my_mc`. Both instances must have the same parent movie clip.

`depth` A number specifying the depth level where `my_mc` is to be placed.

#### Returns

Nothing.

#### Description

Method; swaps the stacking, or z order (depth level), of the specified instance (`my_mc`) 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

`_level`