for (var i:uint = 0; i < 20; i++) this.getChildByName("Mc" + i).addEventListener(MouseEvent.ROLL_OVER, onOver); function onOver (event:MouseEvent):void { bLight.showBlur(event.target); }