move a movieclip to top of everything in Actionsctipt 3.0

A quick and easy way to move a movieclip to top of everything in Actionsctipt 3.0:

function moveToTop( mc:DisplayObject ):void 
{ 
 (mc.parent != null) ? mc.parent.setChildIndex(mc, mc.parent.numChildren-1) : null;
}