After upgrading to ArcGIS for Flex 3.0, I am getting the following error: 1118: Implicit coercion of a value with static type mx.collections:IList to a possibly unrelated type mx.collections:ArrayCollection.
I am getting this because of a change to the visibleLayers type in 3.0: public function showLayer(layerInfo:LayerInfo):void { var visibleLayers:ArrayCollection; if (layer is ArcGISDynamicMapServiceLayer) { visibleLayers = ArcGISDynamicMapServiceLayer(layer).visibleLayers; visibleLayers.addItem(layerInfo.layerId); // add id }
Has anyone found a solution to this? I could not find any in the forum.