Loadmovie and swapdepth

I have 2 movie clips ready to accept ‘loadmovie’ commands.
I have 18 buttons that load swf movies into them.
But the way I want to do it is for the button to identify which clip has the lower depth, load the swf into that clip, then immediately swap with the other clip so it is then the highest clip.
If I do this I will see the new swf load into the screen whilst being able to see the swf file below.
The swf files are images meaning each one loads on top of the one that is already on the screen. It looks great. If I can get it to work.
This is the code I have attached to the buttons.

on (release) {
if (“clip1.getDepth”<“clip2.getDepth”) {
loadMovie(“pic1.swf”,clip1);
clip1.swapDepths(clip2);
} else {
loadMovie(“pic1.swf”,clip2);
clip1.swapDepths(clip2);
}

clip1 and clip2 are the two clips.
This will work the first time the button is used. It will load the movie into clip1 then swap it with clip2 so it is higher in the z depth.
But from then on every click of a button loads into clip1 again.
But it also swaps the depth so at least that is working.
It would appear that the ‘if’ statement always returns the same after the first click of a button.
Does anyone know how to solve this very puzzling thing?
I would really appreciate any help as I have been on for 4 days now and can’t seem to manage it.