# swapDepths ans Publish Settings

**URL:** <https://forum.kirupa.com/t/swapdepths-ans-publish-settings/310847>\
**Category:** flash\
**Created:** [June 21, 2010, 10:43am UTC](https://forum.kirupa.com/t/swapdepths-ans-publish-settings/310847 "2010-06-21T10:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parchow](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@parchow](https://forum.kirupa.com/u/parchow)\
**Post date:** [June 21, 2010, 10:43am UTC](https://forum.kirupa.com/t/swapdepths-ans-publish-settings/310847/1 "2010-06-21T10:43:01Z")

</div>

Hy All,

I’ve got a question and I hop to find an answer here among you guys.

I’m using the following bit of code to make myMovieclip swapDepths on rollOver. and it works just fine if I set the flashplayer to Flash Player 6 in the Publish Settings.

```auto
 
on (rollOver, release, dragOver, dragOut) {;
_root.x += 2;
_parent.myMovieclip.swapDepths(_root.x);
}

```

But Now I’m changing some things that only work in Flash Player 9 and in that setting the swapDepths sopped working?

How can I make the above code work in FlashPlayer 9?

I thank you in advance for your replys!

Marc
