I am working on developing a custom widget that performs a geoprocessing task. I have a first iteration of it working-- it returns a point layer and symbolizes it. The code is currently all in one MXML file and is a bit ungainly. A lot of code is taken up for the UniqueValueRenderer and I would like to split this out into a separate component to make the code more readable, and also to simplify its reuse. I am struggling to figure out the best way to do this. The UniqueValueRenderer is written in MXML. When I split this out into a separate component MXML, I am not sure how to access it in the main file ActionScript.Specifically, I've got ResultRenderer.mxml with the following (this is shortened):<fx:Declarations> <esri:SimpleMarkerSymbol id="tier1" color="0xFF0000" size="12"> <esri:SimpleLineSymbol width="1" color="0x000000"/> </esri:SimpleMarkerSymbol> <esri:SimpleMarkerSymbol id="tier2" color="0xFF4400" size="12"> <esri:SimpleLineSymbol width="1" color="0x000000"/> <esri:UniqueValueRenderer id="uniqueValueRenderer" field="Tier"> <esri:UniqueValueInfo symbol="{tier1}" value="1"/> <esri:UniqueValueInfo symbol="{tier2}" value="2"/> </esri:UniqueValueRenderer> </fx:Declarations>Then in my main mxml, I want to call it here (4th line), but I get an undefined property error. Any insight or example would be appreciated! protected function onGetResult(event : GeoprocessorEvent) : void { var myGraphicsLayer:GraphicsLayer = new GraphicsLayer(); myGraphicsLayer.renderer = ResultRenderer.uniqueValueRenderer; var pv:ParameterValue = event.parameterValue; var fs:FeatureSet = pv.value as FeatureSet; for each(var graphic:Graphic in fs.features) { myGraphicsLayer.add(graphic); } map.addLayer(myGraphicsLayer); CursorManager.removeBusyCursor(); }