bcedergren
05-20-2008, 07:15 PM
I have a combobox that holds the states as data. I am returning XML that shows the states in the two letter abbreviation (ex. MN), I need to be able to update the combobox based on the XML returned data. Any ideas on how to implement this?
<mx:FormItem label="State: ">
<mx:ComboBox id="stateCombobox" dataProvider="{statesList.state}" prompt="Select a State" selectedIndex="-1" change="validateForm(event);"/>
</mx:FormItem>
XML
<User>
<State>MN</State>
</User>
<mx:FormItem label="State: ">
<mx:ComboBox id="stateCombobox" dataProvider="{statesList.state}" prompt="Select a State" selectedIndex="-1" change="validateForm(event);"/>
</mx:FormItem>
XML
<User>
<State>MN</State>
</User>