Hi Robert,Here's a sample that gives me two events. Hope this helps...
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<fx:Script>
<![CDATA[
import com.esri.ags.events.LayerEvent;
import mx.events.CollectionEvent;
protected function dynLyr_loadHandler(event:LayerEvent):void
{
dynLyr.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, updateVisibilty);
}
protected function updateVisibilty(event:CollectionEvent):void
{
trace(event);
}
protected function button1_clickHandler(event:MouseEvent):void
{
dynLyr.visibleLayers.removeAll();
dynLyr.visibleLayers.addItem(5);
}
]]>
</fx:Script>
<s:Button label="Update Visible Layers" click="button1_clickHandler(event)"/>
<esri:Map id="map">
<esri:ArcGISDynamicMapServiceLayer id="dynLyr"
load="dynLyr_loadHandler(event)"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"/>
</esri:Map>
</s:Application>
Trace:[CollectionEvent kind="reset" location=-1 oldLocation=-1 type="collectionChange" bubbles=false cancelable=false eventPhase=2][CollectionEvent kind="add" location=0 oldLocation=-1 type="collectionChange" bubbles=false cancelable=false eventPhase=2]