I am working on a combobox that has both icons and text in its dropdown
section.
Here is how I do it:

[Embed(source="icon1.png")]
public var _icon1:Class;
[Embed(source="icon2.png")]
public var _icon2:Class;

.....................

<mx:ComboBox id="combo" labelField="label" width="100%"
 creationComplete="{combo.dropdown.iconField='icon'}">
<mx:Object icon="_icon1"
label="Label1" value="value1"/>
<mx:Object icon="_icon2"
       label="label2" value="value2/>
</mx:ComboBox>

Now I want to use an ArrayCollection as a combo dataProvider. Icons will be
loaded into it. How exactly do I configure the ArrayCollection to serve the
same purpose as my current object?


Thanks

Reply via email to