Keeping a movie clip always at the top (z-index)

Hi,

I’m using:

var maxIndex:Number = this.numChildren - 1;

a.addEventListener(MouseEvent.MOUSE_OVER, sendToTop );


z.addEventListener(MouseEvent.MOUSE_OVER, sendToTop );

function sendToTop(e:Event):void
{
this.setChildIndex(e.currentTarget as MovieClip, maxIndex);
}

to send each mc to the top when moused over, in a grid style gallery, but now i’d like to keep another mc at the very top of the z-index so it always shows over the top of the others, I just can’t keep the other mcs from always jumping over. Can anyone point me in the direction of a fix for this - (yes I’m new to AS3…:slight_smile:

Thanks