 /**
   * LzMouseKernel.as
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @topic Kernel

    // handles MOUSE_LEAVES event
    static function __mouseLeavesHandler(event:Event):void {
        var eventname = 'on' + event.type.toLowerCase();
        LzMouseKernel.__sendEvent(null, eventname);
    }


            LzMouseKernel.__lastMouseDown.__globalmouseup(event);
            __lastMouseDown = null;
        } else {
            if (__mouseLeft && event.buttonDown && LzMouseKernel.__lastMouseDown != null) {
                __mouseLeft = false;
                //Debug.write(eventname, event.buttonDown, LzMouseKernel.__lastMouseDown);
                var ev = new MouseEvent('mouseup');
                LzMouseKernel.__lastMouseDown.__globalmouseup(ev);
                LzMouseKernel.__lastMouseDown = null;
            }
            LzMouseKernel.__sendEvent(null, eventname);
        }
    }
