# Swap Depths

**URL:** https://forum.kirupa.com/t/swap-depths/308584
**Category:** Uncategorized
**Created:** [April 26, 2010, 2:18pm UTC](https://forum.kirupa.com/t/swap-depths/308584 "2010-04-26T14:18:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![olliverpowell](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@olliverpowell](https://forum.kirupa.com/u/olliverpowell)
#### Post date: [April 26, 2010, 2:18pm UTC](https://forum.kirupa.com/t/swap-depths/308584/1 "2010-04-26T14:18:35Z")

</div>

Hello,

I’ve followed a few tutorials on Swapping depths, but they all refer to swapping the depth by using behaviors such as onRelease etc.

I would like to swap a MovieClip with another, but i want to do it at a given point on a timeline as opposed to doing it through a behavior so the swap isn’t immediate.

I tried using the following on a keyframe \*\*this.swapDepths(second\_mc); **but nothing happened, the movieclip just runs through**

I’ve uploaded my test file here:

\*\*[http://www.baycreative.co.uk/Photos.swf](http://www.baycreative.co.uk/Photos.swf)

As you can see each movie clip runs when you click it, but i also want it to swapDepth (so the second movieclip is now on top to be clicked).

Any thoughts would be appareciated
