# Why doesnt this work

**URL:** <https://forum.kirupa.com/t/why-doesnt-this-work/57833>\
**Category:** flash\
**Created:** [July 16, 2004, 3:12pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/57833 "2004-07-16T15:12:05Z")\
**Posts on this page:** 5\
**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/57833/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");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 3:58pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/57833/2 "2004-07-16T15:58:21Z")

</div>

Don’t use the quotes;)

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

```

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 5:00pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/57833/3 "2004-07-16T17:00:50Z")

</div>

ok so isnt this action supposed to change the movie clip stage to level 1. SO if its in level 1 and i load an external swf into level 1 why does it get unloaded if im loading the external swf into level 1???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 6:33pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/57833/4 "2004-07-16T18:33:26Z")

</div>

Because it changes the depth of the mc, not the level…?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 8:46pm UTC](https://forum.kirupa.com/t/why-doesnt-this-work/57833/5 "2004-07-18T20:46:51Z")

</div>

ok i just need help on making a movieclip stay always playing while loading other swfs into level0 is this possible someone please help lol
