PDA

View Full Version : [AS3] set combobox selection based on string


corbo950
07-10-2008, 02:41 AM
so im writing a carpooling application and when a person adds them self they select in a combo box what their ride type is. the combo box options are set by a XMLList from a data service. with a XML format as such:

<carpool>
<row>
<id>4</id>
<ride>ride type 1</ride>
</row>
<row>
<id>7</id>
<ride>ride type 2</ride>
</row>
</carpool>


When they go to update their information how can i set the combo box selection based on string i get from the item click function of the datagrid to set the ride type equal to what it was before?