Get selected item from ComboBox : ComboBox Selection « Components « Flex






Get selected item from ComboBox

Get selected item from ComboBox
       
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:HBox>
    <mx:ComboBox id="level">
        <mx:Array>
            <mx:Object label="A" data="1" />
            <mx:Object label="B" data="2" />
            <mx:Object label="C" data="3" />
            <mx:Object label="D" data="4" />
        </mx:Array>
    </mx:ComboBox>

    <mx:TextInput id="selectedLevel" text="level.value" />
</mx:HBox>

</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Get selected value, state, capital and indexGet selected value, state, capital and index
2.Count item count for ComboBox selected itemCount item count for ComboBox selected item
3.ComboBox Selected IndexComboBox Selected Index
4.Count the number of items in a collection between the selected item in a ComboBox control and the end of the collection, and then returns the cursor to the initial locationCount the number of items in a collection between the selected item in a ComboBox control and the end of the collection, and then returns the cursor to the initial location
5.Select a new locale from the ComboBox control.
6.Load a resource module when the user selects the locale from the ComboBox control.