<?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 programatically change visible Layers does not always work in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programatically-change-visible-layers-does-not/m-p/381881#M10945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying change the default visibility of layers and sublayers depending on different criteria. I also want these layers to sync up with the check boxes in the Table of Contents widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I have works "most of the time" when I run the application out of flash builder.&amp;nbsp; However, when I export a release build. Andtest it within the production website. It has a lower success rate. Sometimes, the correct layers turn on/off.. Other times the layers are not changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have similar code to this:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=300662&amp;amp;mc=15#939976"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=300662&amp;amp;mc=15#939976&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But like I said it only works half the time.&amp;nbsp; The library I am using is 2.3.1&amp;nbsp; If anyone has any suggestions let me know. I have tried setting a timeout to delay my function but that did not seem to help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Apr 2013 20:04:02 GMT</pubDate>
    <dc:creator>NicholasVolpe</dc:creator>
    <dc:date>2013-04-28T20:04:02Z</dc:date>
    <item>
      <title>programatically change visible Layers does not always work</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programatically-change-visible-layers-does-not/m-p/381881#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying change the default visibility of layers and sublayers depending on different criteria. I also want these layers to sync up with the check boxes in the Table of Contents widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I have works "most of the time" when I run the application out of flash builder.&amp;nbsp; However, when I export a release build. Andtest it within the production website. It has a lower success rate. Sometimes, the correct layers turn on/off.. Other times the layers are not changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have similar code to this:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=300662&amp;amp;mc=15#939976"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=300662&amp;amp;mc=15#939976&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But like I said it only works half the time.&amp;nbsp; The library I am using is 2.3.1&amp;nbsp; If anyone has any suggestions let me know. I have tried setting a timeout to delay my function but that did not seem to help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 20:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programatically-change-visible-layers-does-not/m-p/381881#M10945</guid>
      <dc:creator>NicholasVolpe</dc:creator>
      <dc:date>2013-04-28T20:04:02Z</dc:date>
    </item>
  </channel>
</rss>

