stage.addEventListener(Event.MOUSE_LEAVE, myFunc); function myFunc(event:Event):void { myMC.visible = false; }