Instead of using an inline itemRenderer, you could build a custom component and drop it in. Inside your component, you could use conditional logic to determine what the value of the source property should be. Something like this:
<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="doInit();" > <mx:Script> <![CDATA[ [Bindable] private var indicator:Class; private function doInit():void { var rs:String = [EMAIL PROTECTED]; switch(rs){ case "STATIC": indicator = parentApplication.gearSingle; break; case "AUTOMATIC": indicator = parentApplication.gearSingle; break; case "AUTOINTRUDER": indicator = parentApplication.gearSingle; break; case "IDLE": indicator = parentApplication.gearSingleStopped; break; case "UNAVAILABLE": indicator = parentApplication.gearSingleUnavailable; break; case "READY": indicator = parentApplication.gearSingle; break; default: indicator = parentApplication.gearSingleStopped; break; } img.source = indicator; ]]> </mx:Script> <mx:Image id="img" source="{indicator}" x="17" y="0" /> </mx:Canvas> Then in your DataGrid: <mx:DataGridColumn headerText="" itemRenderer="com.yourDomain.renderers.customItemRenderer" /> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

