     {
         import flash.events.MouseEvent;
     }
+    COMPILE::JS
+    {
+        import window.MouseEvent;
+    }
     
     import org.apache.flex.core.IUIBase;
     import org.apache.flex.geom.Point;
     import org.apache.flex.utils.PointUtils;
+    
     
 	/**
 	 *  Mouse events

            }
            return _stagePoint.y;            
        }
	}
}

	 */
	public class MouseEvent extends Event
	{
        private static function platformConstant(s:String):String
        {
            COMPILE::AS3
            {
                return s;
            }
            COMPILE::JS
            {
                return s.toLowerCase();
            }
        }
        
		public static const MOUSE_DOWN:String = platformConstant("mouseDown");
        public static const MOUSE_MOVE:String = platformConstant("mouseMove");
		public static const MOUSE_UP:String = platformConstant("mouseUp");
		public static const MOUSE_OUT:String = platformConstant("mouseOut");
		public static const MOUSE_OVER:String = platformConstant("mouseOver");
		public static const ROLL_OVER:String = platformConstant("rollOver");
		public static const ROLL_OUT:String = platformConstant("rollOut");
        public static const CLICK:String = "click";
        
         /**
         *  Constructor.
         *  
