Can someone help me on binding the HashMap data returned by a Remote 
call to the Flex ComboBox? I'm successful in iterating the HashMap 
data inside the ActionScript but I didnt know how to bind the 
key=value pair to a ComboBox

Code Snippet
--------------

[Bindable] private var countryCodeList:Object;
        
private function getCountryCode_Result(event:ResultEvent):void {
    countryCodeList = event.result;

    for ( var key:String in countryCodeList ) { 
      Alert.show("key is " + key + " val is " + event.result[key]); 
    }
}

<mx:RemoteObject id="dataRep" destination="DataRepository">
   <mx:method name="getCountryCodeMap"      
   result="getCountryCode_Result(event)"/>
</mx:RemoteObject>


How do I bind the HashMap here at ComboBox??

<mx:FormItem label="Country Living">
    <mx:ComboBox dataProvider="{countryCodeList}"/>
</mx:FormItem>

Reply via email to