# swapDepths()

**URL:** <https://forum.kirupa.com/t/swapdepths/138706>\
**Category:** Uncategorized\
**Created:** [February 24, 2005, 6:18pm UTC](https://forum.kirupa.com/t/swapdepths/138706 "2005-02-24T18:18:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veraxoxo](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@veraxoxo](https://forum.kirupa.com/u/veraxoxo)\
**Post date:** [February 24, 2005, 6:18pm UTC](https://forum.kirupa.com/t/swapdepths/138706/1 "2005-02-24T18:18:28Z")

</div>

I’m trying to swapDepths of 2 movie clips during a motion tween, but it causes the motion tween to stop half way through.

As one movie clip is moving, I want it to appear above the other movieclip :

clip1.swapDepths(clip2);

But the depth swap never happens and the motion tween stops.

Any ideas what I’m doing wrong?
