Specifying an icon to the List control
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> [Embed(source="logo.jpg")] public var iconSymbol1:Class; [Embed(source="logo.jpg")] public var iconSymbol2:Class; </mx:Script> <mx:List iconField="myIcon"> <mx:dataProvider> <mx:Array> <mx:Object label="A" data="AA" myIcon="iconSymbol1" /> <mx:Object label="B" data="BB" myIcon="iconSymbol2" /> <mx:Object label="C" data="CC" myIcon="iconSymbol1" /> </mx:Array> </mx:dataProvider> </mx:List> </mx:Application>