I have upgraded to the arcgis flex 3.1 version. In doing so, ESRI TOC component no longer works as it use to. Specifically in the TocMapLayerItem.as there are a couple of lines of code as such:
layerInfos = ArcGISDynamicMapServiceLayer(layer).layerInfos;
visibleLayers = ArcGISDynamicMapServiceLayer(layer).visibleLayers;
}
else if (layer is ArcIMSMapServiceLayer)
{
layerInfos = ArcIMSMapServiceLayer(layer).layerInfos;
visibleLayers = ArcIMSMapServiceLayer(layer).visibleLayers
In the old version var visibleLayers is an arraycollection = the layer.visibleLayers (arraycollection). In 3.1 layer.visibleLayers is now an ILIST and not an arraycollection.
Has anyone addressed this? I'm not real sure on the best way to correct this, since the component interacts with other ESRI TOC components.
thanx,
Eddie