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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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