swapDepths()

I’m trying to swapDepths of 2 movie clips during a motion tween, but it causes the motion tween to stop half way through.

As one movie clip is moving, I want it to appear above the other movieclip :

clip1.swapDepths(clip2);

But the depth swap never happens and the motion tween stops.

Any ideas what I’m doing wrong?