hoge.addEventListener(MouseEvent.ROLL_OVER, onMouseOver); function onMouseOver (event:MouseEvent):void { hoge.addEventListener (Event.ENTER_FRAME, onEnterFrame); function onEnterFrame(event:Event):void { trace("hoge"); } }