<?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: Select, Buffer, Select More in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-buffer-select-more/m-p/196829#M4603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A more simple question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I set bufferParameters.geometries to be "the features that are currently selected in my feature layer"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, what is the exact syntax for doing that?&amp;nbsp; My feature layer is just called fLayer.&amp;nbsp; I see that selectedFeatures is a property of feature layer.&amp;nbsp; I tried bufferParameters.geometries = [fLayer.selectedFeatures];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but so far that hasn't worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tips?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that would be helpful because setting bufferParameters.geometries as event.feature.geometry or event.graphic.geometry is making things harder for me to code because it depends on the event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 22:55:59 GMT</pubDate>
    <dc:creator>N_Young</dc:creator>
    <dc:date>2012-02-24T22:55:59Z</dc:date>
    <item>
      <title>Select, Buffer, Select More</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-buffer-select-more/m-p/196828#M4602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am altering the "&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html#/Attribute_Inspector_outside_of_the_map/01nq0000001z000000"&gt;attribute inspector outside of map&lt;/A&gt;&lt;SPAN&gt;" flex sample.&amp;nbsp; Using parcels.&amp;nbsp; I would really like to be able to buffer whatever I select and then add to the selection based on that buffer.&amp;nbsp; So - choose one or more parcels, buffer around them, and select more parcels that are within that buffer distance.&amp;nbsp; (Plain old intersect is fine).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to do the selection of one parcel or a group of parcels and buffer them.&amp;nbsp; There is still an issue with that but I had it working okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My biggest issue, however, is selecting more parcels based on the buffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THE REALLY GOOD THING is that my selectByBuffer method DOES select a larger group of parcels based on the buffer.&amp;nbsp; That is wonderful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;THE REALLY BAD THING is that once it does that, the buffer graphic disappears and a flash player error comes up and I can't do anything else.&amp;nbsp; The error is RangeError: Error #2006: The supplied index is out of bounds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also bad - I used to be able to select different parcels and have a series of buffer graphics on the screen, but now I can only have one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not understand every bit of mxml code but I'm doing my best to piece together things from samples.&amp;nbsp; I'm willing to study up but it helps a LOT to have someone point out a few major flaws for me!&amp;nbsp; That said, I am sure there are many major flaws in my code.&amp;nbsp; But my main question is why I encountered big problems once I tried to select more parcels using the buffer. (the selectByBuffer method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code I make buffers in two different places - one is meant to be for one parcel that the the user clicks on the map, the other is supposed to be for a group of parcels that the user selects using the "Rectangle Select, Buffer" button.&amp;nbsp; This probably needs to be changed but that's what I got to work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to make things more clear by keeping the buffering in a separate function - but I didn't know how to get around needing "event.feature.geometry" (from the selected parcel) which is used to set buffer parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again...many issues I'm sure, but lead me to some more clarity if you can!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE ATTACHED.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 21:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-buffer-select-more/m-p/196828#M4602</guid>
      <dc:creator>N_Young</dc:creator>
      <dc:date>2012-02-23T21:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select, Buffer, Select More</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-buffer-select-more/m-p/196829#M4603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A more simple question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I set bufferParameters.geometries to be "the features that are currently selected in my feature layer"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, what is the exact syntax for doing that?&amp;nbsp; My feature layer is just called fLayer.&amp;nbsp; I see that selectedFeatures is a property of feature layer.&amp;nbsp; I tried bufferParameters.geometries = [fLayer.selectedFeatures];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but so far that hasn't worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tips?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that would be helpful because setting bufferParameters.geometries as event.feature.geometry or event.graphic.geometry is making things harder for me to code because it depends on the event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 22:55:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-buffer-select-more/m-p/196829#M4603</guid>
      <dc:creator>N_Young</dc:creator>
      <dc:date>2012-02-24T22:55:59Z</dc:date>
    </item>
  </channel>
</rss>

