Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

programatically change visible Layers does not always work

$
0
0
Hey!

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.

The code I have works "most of the time" when I run the application out of flash builder. 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.

I have similar code to this: http://forums.esri.com/Thread.asp?c=...2&mc=15#939976

But like I said it only works half the time. The library I am using is 2.3.1 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.

Thanks in advance,
Nick

Viewing all articles
Browse latest Browse all 2097

Trending Articles