# Swap depth question

**URL:** <https://forum.kirupa.com/t/swap-depth-question/182989>\
**Category:** Uncategorized\
**Created:** [March 23, 2006, 12:02am UTC](https://forum.kirupa.com/t/swap-depth-question/182989 "2006-03-23T00:02:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![colombianking](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@colombianking](https://forum.kirupa.com/u/colombianking)\
**Post date:** [March 23, 2006, 12:02am UTC](https://forum.kirupa.com/t/swap-depth-question/182989/1 "2006-03-23T00:02:55Z")

</div>

I need someone to explain to me how to do swapthdepth  
i understand it makes objects go to the top of everything  
but i tried to do it my self and it didnt work  
:ear:

---

<div class="post-metadata">

**Author:** ![Macaroni\_Ted](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Macaroni\_Ted](https://forum.kirupa.com/u/Macaroni_Ted)\
**Post date:** [March 23, 2006, 1:53am UTC](https://forum.kirupa.com/t/swap-depth-question/182989/2 "2006-03-23T01:53:28Z")

</div>

myMc=the mc u want to change depth  
number =the depth u want to place it, from 0 to 1,048,575 (if dynamically placed)  
[AS]myMc.swapDepths(number)[/AS]  
_or to swap with another mc_  
[AS]  
mcMc.swapDepths(myOtherMC)  
[/AS]
