Components Flex



    xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
    
        
    

     
         
        import flash.events.Event; 
        import mx.events.DropdownEvent; 
        // Display the type of event for open and close events. 
        private function dropEvt(event:DropdownEvent):void { 
            forChange.text+=event.type + "\n"; 
        } 
        // Display a selected item's label field and index for change events. 
        private function changeEvt(event:Event):void { 
            forChange.text+=event.currentTarget.selectedItem.label + " " + 
                event.currentTarget.selectedIndex + "\n"; 
        } 
      
    

            change="changeEvt(event)">