# swapDepths issue?

**URL:** <https://forum.kirupa.com/t/swapdepths-issue/251654>\
**Category:** flash\
**Created:** [February 11, 2008, 2:34pm UTC](https://forum.kirupa.com/t/swapdepths-issue/251654 "2008-02-11T14:34:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [February 11, 2008, 2:34pm UTC](https://forum.kirupa.com/t/swapdepths-issue/251654/1 "2008-02-11T14:34:21Z")

</div>

I have an invisible instructions\_mc on the stage which users can call on the click of a button. There’s a drag\_mc on the stage which always stays ontop of the instructions\_mc. How do I get them to swap round? The instructions\_mc also has an inout textfield so I can’t use on press etc.

This is the code on the drag\_mc:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR][COLOR=#000000]([/COLOR]press[COLOR=#000000])[/COLOR]

```

[COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]swapDepths[/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]memoryx[/COLOR]=[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]\_x[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]memoryy[/COLOR]=[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]\_y[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]startDrag[/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]dragging[/COLOR]=[COLOR=#000080]1[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

Can someone tell me what to do to solve this problem please :crazy:
