<?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: EditEvent graphic null in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592655#M13283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bernadette,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EditTool supports moving multiple graphics at a time while it only allows you to edit the vertices of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;one graphic. Hence the EditEvent has two properties - graphic and graphics &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/EditEvent.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/EditEvent.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are moving graphic(s), you need to look at EditEvent.graphics(in your case it would be in the graphicMoveStop handler, event.graphics[0]), and when you are editing the vertices, you need to look at EditEvent.graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it makes things clear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 20:09:16 GMT</pubDate>
    <dc:creator>SarthakDatt</dc:creator>
    <dc:date>2010-08-05T20:09:16Z</dc:date>
    <item>
      <title>EditEvent graphic null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592654#M13282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the DrawTool object to draw a Polygon on my map, then activated an EditTool object to move the polygon. I added a graphicMoveStop event with handler to my EditTool. Here's the problem: when I move the polygon using the EditTool, I added an Alert to the graphicMoveStop handler to verify that the graphic is there (by printing out 'event.graphic'). The result - event.graphic is null. I need the extent of this graphic, but the graphic is not there. Is this a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 17:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592654#M13282</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-05T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: EditEvent graphic null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592655#M13283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bernadette,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EditTool supports moving multiple graphics at a time while it only allows you to edit the vertices of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;one graphic. Hence the EditEvent has two properties - graphic and graphics &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/EditEvent.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/EditEvent.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are moving graphic(s), you need to look at EditEvent.graphics(in your case it would be in the graphicMoveStop handler, event.graphics[0]), and when you are editing the vertices, you need to look at EditEvent.graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it makes things clear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 20:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592655#M13283</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2010-08-05T20:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: EditEvent graphic null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592656#M13284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sarthak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the graphics property in my graphicMoveStop handler and it worked!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your advice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernadette&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 12:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592656#M13284</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-09T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: EditEvent graphic null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592657#M13285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've run into a problem with the vertexMoveStop handler. I am using the EditEvent.graphic to get the new extent of my polygon after moving vertices. The extent xmin, xmax, etc don't change in this event handler. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var myNewGeometry:Geometry = event.graphic.geometry as Polygon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var myMapPoint:MapPoint = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; new MapPoint(myNewGeometry.extent.xmin, myNewGeometry.extent.ymax);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I print an Alert to compare the original Polygon extent to the edited Polygon extent (edited by moving vertices), I get the original values, as if the fired event has not updated the extent. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I miss something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 14:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editevent-graphic-null/m-p/592657#M13285</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-09T14:37:01Z</dc:date>
    </item>
  </channel>
</rss>

