Sending MC's to the back (stacking order)

Okay, let’s see if you guy’s can help.

Basically I have a little app where a pop up palette contains dragable movie clips that then are placed on the main stage. However when the palette pops up for a second time it remains behind the placed movie clips.

The clips have to be on top of the palette initially, but something like on release swapDepths?

Anyone got any clue as to how to fix this as it’s driving me nuts.

Thanks in advance.