     }
 
     // handles MOUSE_LEAVE event
-    static function __mouseLeavesHandler(event:Event):void {
-        var eventname = 'on' + event.type.toLowerCase();
+    static function __mouseLeaveHandler(event:Event = null):void {
         __mouseLeft = true;
-        __sendEvent(null, eventname);
+        __sendEvent(null, 'onmouseleave');
     }
 
     static function __mouseWheelHandler(event:MouseEvent):void {

            __lastMouseDown.__globalmouseup(event);
            __lastMouseDown = null;
        } else {
            if (__mouseLeft && event.buttonDown) {
                __mouseLeft = false;
                __mouseUpOutsideHandler();
            }
            __sendEvent(null, eventname);
        }

            LFCApplication.stage.addEventListener(MouseEvent.MOUSE_UP,   __mouseHandler);
            LFCApplication.stage.addEventListener(MouseEvent.MOUSE_DOWN, __mouseHandler);
            LFCApplication.stage.addEventListener(MouseEvent.MOUSE_WHEEL, __mouseWheelHandler);
            LFCApplication.stage.addEventListener(Event.MOUSE_LEAVE, __mouseLeaveHandler);
            __listeneradded = true;
        }
    }    
