flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Combobox with icons
Date Mon, 23 Mar 2015 16:57:54 GMT
Those two mx:Objects were probably placed in an ArrayCollection.  Take a
look in the debugger.

-Alex

On 3/23/15, 9:00 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>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

Mime
View raw message