hi,
I know how to display icons in a dropdown list of a combobox, but when I select an item, there is no icon apearing next to label. I recon I should build my own ItemRenderer for selected item, but do you know how to apply it?
here's code sample
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
[Embed(source="rc/icon.jpg")]
var iconSymbol:String;
</mx:Script>
<mx:Panel width="250" height="200" layout="horizontal" horizontalCenter="0" verticalCenter="-37.5">
<mx:ComboBox id="itemsCbx">
<mx:ArrayCollection>
<mx:Object label="item" icon="{ iconSymbol }"/>
<mx:Object label="item" icon="{ iconSymbol }"/>
<mx:Object label="item" icon="{ iconSymbol }"/>
</mx:ArrayCollection>
</mx:ComboBox>
</mx:Panel>
</mx:Application>