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
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4728
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