for (i=0; i<100; i++) { this["mc"+i].onRollOver = function() { mx.behaviors.DepthControl.bringToFront(this); }; }