# Using SwapDepths in MX?

**URL:** <https://forum.kirupa.com/t/using-swapdepths-in-mx/47299>\
**Category:** flash\
**Created:** [April 2, 2004, 1:44pm UTC](https://forum.kirupa.com/t/using-swapdepths-in-mx/47299 "2004-04-02T13:44:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![memsyelfandi](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@memsyelfandi](https://forum.kirupa.com/u/memsyelfandi)\
**Post date:** [April 2, 2004, 1:44pm UTC](https://forum.kirupa.com/t/using-swapdepths-in-mx/47299/1 "2004-04-02T13:44:33Z")

</div>

Hiya guys, I wanted to swap the depths of two movieclips one located in \_level0 the other located in \_level2! I can get it to work when the MC’s are on the same level but not when thier in different levels.

This is the code I’ve tried…

```auto
 _level2.buttons.swapDepths(_level0.caption);

```

Is there anyway to do this?

Thanks in advance, J
