<mx:Repeater id="rp" dataProvider="{_layersInfo}">
<mx:VBox label="{rp.currentItem.typeName}">
<s:List id="layerNameList"
dropEnabled="false"
dragEnabled="false"
dragMoveEnabled="false"
dataProvider="{rp.currentItem.overlayLayers}"
itemRenderer="com.aien.control.OverlayLayerItemRender"
rendererAdd="layerNameList_rendererAddHandler(event)"
borderVisible="false"
width="{accContainer.width-2}"/>
</mx:VBox>
</mx:Repeater>
<mx:VBox label="{rp.currentItem.typeName}">
<s:List id="layerNameList"
dropEnabled="false"
dragEnabled="false"
dragMoveEnabled="false"
dataProvider="{rp.currentItem.overlayLayers}"
itemRenderer="com.aien.control.OverlayLayerItemRender"
rendererAdd="layerNameList_rendererAddHandler(event)"
borderVisible="false"
width="{accContainer.width-2}"/>
</mx:VBox>
</mx:Repeater>
/*事件监听*/
protected function layerNameList_rendererAddHandler(e:RendererExistenceEvent):void
{
var render:OverlayLayerItemRender=e.renderer as OverlayLayerItemRender;
render.addEventListener("DelLayer",delLayer);
}
{
var render:OverlayLayerItemRender=e.renderer as OverlayLayerItemRender;
render.addEventListener("DelLayer",delLayer);
}