Yes and no.  with this you can set the actual emptyItemValue to be whatever you 
want.  For instance if you have some complex set of dto's etc, you can set the 
emptyItemValue to be an actual object and have it be able to work more 
seamlessly with other parts of the logic.  There are quite a few edge cases 
where you might want to distinguish the empty item by some value other than -1, 
but still represent the selectedIndex as -1 for compatibility with the 
framework.

> Date: Tue, 10 Apr 2012 10:36:09 -0700
> Subject: Re: combo box
> From: s9tpep...@apache.org
> To: flex-dev@incubator.apache.org
> 
> On Tue, Apr 10, 2012 at 10:32 AM, David Coleman <
> david_coleman_...@hotmail.com> wrote:
> 
> >
> > hmmmm it seems the listsrv ate my file.  :-(
> >
> > here, I'll paste it in.  And BTW: it is for spark.
> >
> > ...
> 
> 
> Hey David,
> 
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/ComboBox.html#prompt
> 
> That's the property I was talking about, on s:ComboBox. If you set the
> comboBox.prompt the text  you set will display when comboBox.selectedIndex
> = -1. Is that not the behavior you're looking for?
> 
> 
> -- 
> Omar Gonzalez
> s9tpep...@apache.org
                                          

Reply via email to