# Why doesnt this work

**URL:** <https://forum.kirupa.com/t/why-doesnt-this-work/116325>\
**Category:** Uncategorized\
**Created:** [July 16, 2004, 3:12pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/116325 "2004-07-16T15:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grimdeath](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grimdeath/32/7124_2.png) [@grimdeath](https://forum.kirupa.com/u/grimdeath)\
**Post date:** [July 16, 2004, 3:12pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/116325/1 "2004-07-16T15:12:05Z")

</div>

im trying to get a movieclip i have on the maintimeline to swap its depth with a emptymovieclip im creating, i want to change the depth of the movieclip on the maintimeline which is stage to go to level 1.

heres the code im using any help is greatly appreciatted thanks

```auto
_root.createEmptyMovieClip("target", 1);
target.swapDepths("stage");

```
