Swap depth question

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:

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]