Its quite easy!  I suggest, and I don't mean to come across too bluntly
here, you read the API: http://livedocs.adobe.com/flex/2/langref/index.html

Specifically for this thread, see here
http://livedocs.adobe.com/flex/2/langref/mx/controls/ComboBox.html
looking at the events section, the close event really isn't what is needed
here.  Rather, should use the change event.

DK


On 10/20/07, George Georgiou <[EMAIL PROTECTED]> wrote:
>
> such a simple thing.... and Flex cannot handle it easily :(
>
> I m very disappointed with this ... :(
>
> so many people have the same problem, why don't they just make it simple?
>
> G
>
>
>
> On 10/20/07, Simon Bailey <[EMAIL PROTECTED]> wrote:
> >
> > Hey Phil,
> >
> > Here is an example I have build recently for Flex & ColdFusion, it
> > features a ComboBox which you can have a look at to get an idea:
> >
> > http://www.nutrixinteractive.com/blog/?p=69
> >
> > Cheers Simon
> >
> > On 19 Oct 2007, at 22:28, Phill B wrote:
> >
> > > I have a comboBox that is populated by a query from a remoteObject. I
> > > want to use the value of the comboBox in a function. I cant figure out
> > > how to get the current value of it. Any ideas?
> > >
> > > Here is some of the code that I think will help.
> > >
> > > <mx:RemoteObject id="dealer"
> > > destination="ColdFusion"
> > > source="dealers.Dealers"
> > > showBusyCursor="true">
> > >
> > > <mx:method name="StateCodes"
> > > result="StateCodesResults(event)" makeObjectsBindable="true"/>
> > >
> > > <mx:method name="DealerSearch"
> > > result="DealerSearchResults(event)"/>
> > > </mx:RemoteObject>
> > >
> > > private function StateCodesResults(event:ResultEvent):void {
> > >       stateCombo.dataProvider = event.result as ArrayCollection;
> > >       }
> > >
> > > private function DealerSearchResults(event:ResultEvent):void {
> > >       dealerList.dataProvider = event.result as ArrayCollection;
> > >       }
> > >
> > > <mx:ComboBox id="stateCombo" labelField="state"
> > > data="state" width="60"
> > > close="dealer.DealerSearch(stateCombo.selectedItem.label)"/>
> > >
> > > Thanks
> > >
> > > --
> > > Phil
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4733
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to