Re: Combobox with icons

2015-03-23 Thread Alex Harui
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" 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 _ico

Re: Combobox with icons

2015-03-23 Thread mark goldin
Will something like this work? ArrayCollectionIconSourceDataProvider.addItem({icon:imageArray[0]}); where imageArray defined like this: imageArray.addItem(new Bitmap(bitmapData)); Thanks On Mon, Mar 23, 2015 at 11:57 AM, Alex Harui wrote: > Those two mx:Objects were probably placed in an Array

RE: Combobox with icons

2015-03-23 Thread Kessler CTR Mark J
I do know a s:BitmapImage can load files on the fly with its source property [1]. It supports "The name of a external image file" and " The image location can be specified via a URL, URLRequest, or file reference". It is limited to PNG, GIF, or JPG. [1] http://help.adobe.com/en_US/FlashPla

Re: Combobox with icons

2015-03-23 Thread mark goldin
My code is a bit simplified. bitmapData is a result of loading an image in advance. On Mon, Mar 23, 2015 at 1:00 PM, Kessler CTR Mark J < mark.kessler@usmc.mil> wrote: > I do know a s:BitmapImage can load files on the fly with its source > property [1]. It supports "The name of a external im

RE: Combobox with icons

2015-03-25 Thread Kessler CTR Mark J
ta an object as well. -Mark -Original Message- From: mark goldin [mailto:markzolo...@gmail.com] Sent: Monday, March 23, 2015 2:04 PM To: users Subject: Re: Combobox with icons My code is a bit simplified. bitmapData is a result of loading an image in advance. On Mon, Mar 23, 2015 at 1:

Re: Combobox with icons

2015-03-30 Thread mark goldin
mark goldin [mailto:markzolo...@gmail.com] > Sent: Monday, March 23, 2015 2:04 PM > To: users > Subject: Re: Combobox with icons > > My code is a bit simplified. bitmapData is a result of loading an image in > advance. > > On Mon, Mar 23, 2015 at 1:00 PM, Kessler CTR Mark J <