<?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: feature layer graphic provider initially empty in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-graphic-provider-initially-empty/m-p/732431#M16248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;meh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;swapped the logic around &amp;amp; added event listeners at init time (using an add graphic event). seems to be working ok.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 17:32:20 GMT</pubDate>
    <dc:creator>PaulHastings1</dc:creator>
    <dc:date>2012-10-30T17:32:20Z</dc:date>
    <item>
      <title>feature layer graphic provider initially empty</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-graphic-provider-initially-empty/m-p/732430#M16247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dynamically adding some feature layers &amp;amp; trying to add listeners to each graphic in the feature to do some editing. debugging is showing that the feature layers graphic provider is initially empty (or i guess not fully loaded). if the editing mode (snippet shown below) is run a 2nd time, the feature layers graphic providers are filled &amp;amp; the event listeners are added ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there some trick to this? a standard way to make sure the feature layers graphic providers fully loaded?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var key:String;
var graphic:Graphic;
for (key in editableLayers) {
 editableLayers[key].visible=true; // show over map service
 for each(graphic in editableLayers[key].graphicProvider) {
&amp;nbsp; graphic.addEventListener(MouseEvent.CLICK,clickFeatureHandler,false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 16:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-graphic-provider-initially-empty/m-p/732430#M16247</guid>
      <dc:creator>PaulHastings1</dc:creator>
      <dc:date>2012-10-30T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer graphic provider initially empty</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-graphic-provider-initially-empty/m-p/732431#M16248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;meh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;swapped the logic around &amp;amp; added event listeners at init time (using an add graphic event). seems to be working ok.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 17:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-graphic-provider-initially-empty/m-p/732431#M16248</guid>
      <dc:creator>PaulHastings1</dc:creator>
      <dc:date>2012-10-30T17:32:20Z</dc:date>
    </item>
  </channel>
</rss>

