Components Flex



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

    
         
            import spark.events.IndexChangeEvent; 
            protected function selectionChangedHandler(event:IndexChangeEvent):void 
            { 
                var currentIndx:int = event.currentTarget.selectedIndex; 
                var currentDataItem:Object = event.currentTarget.selectedItem; 
                selIndex.text = String(currentIndx); 
                selLName.text = String(currentDataItem.lastName); 
            } 
          
    

            change="selectionChangedHandler(event)">