# swapDepths Help!

**URL:** <https://forum.kirupa.com/t/swapdepths-help/178812>\
**Category:** flash\
**Created:** [February 14, 2006, 2:49pm UTC](https://forum.kirupa.com/t/swapdepths-help/178812 "2006-02-14T14:49:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jatin23](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@Jatin23](https://forum.kirupa.com/u/Jatin23)\
**Post date:** [February 14, 2006, 2:49pm UTC](https://forum.kirupa.com/t/swapdepths-help/178812/1 "2006-02-14T14:49:48Z")

</div>

Hi,

I am creating images animation & using attached movie. Movieclip used is “picMc”. I am using linkage to call the movie in the file

\*\*Actionscript: \*\*\_root.attachMovie(“picMc”, “picBg”, 500);  
I need that linkage file to be at the bottom of the file,  
This movieclip curve should be on top of “picMc”.

[COLOR=#0066cc][COLOR=#000000] **Actionscript:** \_root.cruve.swapDepths(2); \_root.picMc.swapDepths(1);[/COLOR][/COLOR]

But it is not working.

**\_root.cruve.swapDepths(\_root.picMc);**

This too is not working. Please Help!
