Components Flex



    
        
        import flash.events.Event;
        import mx.events.DropdownEvent;
        private function dropEvt(event:DropdownEvent):void {
            forChange.text+=event.type + "\n";
        }
        private function changeEvt(event):void {
            forChange.text=event.currentTarget.selectedItem.state + " " + event.currentTarget.selectedItem.capital + " " + event.currenttarget.selectedIndex;
        }
      
    

            change="changeEvt(event)" labelField="state">