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:4730 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
