<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add a MapMouseEvent? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241757#M5708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to add a MapMouseEvent in ActionScript.&amp;nbsp; The code I created is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addEventListener(MouseEvent.CLICK, myEventHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private function myEventHandler(e:MapMouseEvent):void {&amp;nbsp; ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I received TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent to com.esri.ags.events.MapMouseEvent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can this bug be fixed?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 12:32:58 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2012-06-27T12:32:58Z</dc:date>
    <item>
      <title>How to add a MapMouseEvent?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241757#M5708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to add a MapMouseEvent in ActionScript.&amp;nbsp; The code I created is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addEventListener(MouseEvent.CLICK, myEventHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private function myEventHandler(e:MapMouseEvent):void {&amp;nbsp; ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I received TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent to com.esri.ags.events.MapMouseEvent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can this bug be fixed?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 12:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241757#M5708</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-06-27T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a MapMouseEvent?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241758#M5709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of adding the MouseEvent.Click event, you should add the MapMouseEvent.MAP_CLICK event&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 13:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241758#M5709</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-06-27T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a MapMouseEvent?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241759#M5710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; It works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-add-a-mapmouseevent/m-p/241759#M5710</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-06-27T15:37:24Z</dc:date>
    </item>
  </channel>
</rss>

