Changing Stacking Order - swapDepths

Hi,

I’ve just completed this tutorial: http://www.kirupa.com/developer/actionscript/swapdepth.htm

It’s been really useful and I’m really nearly there. One thing is causing me a problem though.

I’ve basically got a flash file showing loads of images all overlapping each other. When you toggle your mouse over the images the one you are on pops to the front allowing you to see the whole image. This part works fine. The problem is that once you have moved your mouse over and selected an image you see you can then click the image to see it bigger, when this happens the smaller image that I made pop to the front remains there forever.

Basically what ever image you roll over last remains visible throughout the movie.

Any help would be much appreciated.
Thanks.
JAmes.