I want to add a MapMouseEvent in ActionScript. The code I created is below: map.addEventListener(MouseEvent.CLICK, myEventHandler); ...... private function myEventHandler(e:MapMouseEvent):void { ... } But I received TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent to com.esri.ags.events.MapMouseEvent. How can this bug be fixed? Thanks.