How do I create a component that has just GraphicsLayers? and then include this component where one layer would normally go?ex:<?xml version="1.0" encoding="utf-8"?>
<mx:UIComponent 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"
width="100%" height="100%"
>
<esri:WMSLayer id="wmslayer1" />
<esri:GraphicsLayer id="layer2" />
<esri:GraphicsLayer id="layer3" />
<esri:GraphicsLayer id="layer4" />
<esri:GraphicsLayer id="layer5" />
</mx:UIComponent>
I get this error msg:'GraphicsLayer' declaration must be contained within the <Declarations> tag since it does not implement 'mx.core.IUIComponent'. I thought that all layers extend UIComponent ?Or do I put them all in the <Declarations> tag , and in the creationsComplete event, add the layers to the parent(map)? thanks,