<?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 Re: Perplexing Events in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121049#M2888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then again, when something seems too complicated it usually is &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need to trap the mouse_up event as long as I can get the mouse coordinates when the edittool graphics move end event fires.&amp;nbsp; Which units are the map mousex and mousey properties in?&amp;nbsp; To transform them into map units do I use toMap() rather than the toMapFromStage that I would use in a mouse event?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Nov 2010 21:12:22 GMT</pubDate>
    <dc:creator>CharlieRichman</dc:creator>
    <dc:date>2010-11-04T21:12:22Z</dc:date>
    <item>
      <title>Perplexing Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121048#M2887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, not the election.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm editing&amp;nbsp; a locally-instantiated featurelayer (populated using a featurecolleciton).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I trap the editor graphicsMoveStop event and also set listeners for the Flash MOUSE_UP mouse event on each of the features that are being moved.&amp;nbsp; (I do this because I really don't want them to be moved at all -- I push them back to where they started but run a query on the location where the mouse up event occurred and transfer attributes from the results to the layer I'm editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The challenge is that the MOUSE_UP events don't always fire when features are dragged.&amp;nbsp; They virtually always do with a single feature selected, but as we get towards having a dozen or two features selected they generally don't.&amp;nbsp; The editor event does fire in each case.&amp;nbsp; Is this a timing issue where if the mouse event doesn't fire before the editor event fires it will never fire?&amp;nbsp;&amp;nbsp; Is there some way I can reliably capture the location where the mouse was released when dragging my features around?&amp;nbsp; I use listeners on the individual graphics instead of on the entire layer because I need to know whether the mouse event is triggered by dragging features to a new location or by clicking elsewhere to select something else.&amp;nbsp; (It isn't enough to know where the event occurs -- I need to know if features were dragged there or if something else was clicked there.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 19:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121048#M2887</guid>
      <dc:creator>CharlieRichman</dc:creator>
      <dc:date>2010-11-04T19:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Perplexing Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121049#M2888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then again, when something seems too complicated it usually is &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need to trap the mouse_up event as long as I can get the mouse coordinates when the edittool graphics move end event fires.&amp;nbsp; Which units are the map mousex and mousey properties in?&amp;nbsp; To transform them into map units do I use toMap() rather than the toMapFromStage that I would use in a mouse event?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 21:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121049#M2888</guid>
      <dc:creator>CharlieRichman</dc:creator>
      <dc:date>2010-11-04T21:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perplexing Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121050#M2889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this the mouseX you're referring to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#mouseX"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#mouseX&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this value will be in the DisplayObject's coordinate space. Try using this and then call Map.toMapFromStage();&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#localToGlobal()"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#localToGlobal()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 21:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121050#M2889</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-04T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perplexing Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121051#M2890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that did it nicely.&amp;nbsp; Far better to include something like this in the event fired by the edittool than to deal with competing mouse_up events:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var globalPoint:Point = myMap.localToGlobal(new Point(myMap.mouseX,myMap.mouseY));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var mp:MapPoint = myMap.toMapFromStage(globalPoint.x,globalPoint.y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Dasa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 13:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/perplexing-events/m-p/121051#M2890</guid>
      <dc:creator>CharlieRichman</dc:creator>
      <dc:date>2010-11-05T13:14:01Z</dc:date>
    </item>
  </channel>
</rss>

