Get selected item label from a list
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.controls.List; import mx.controls.Alert; private function handleChangeEvent(event:Event):void { Alert.show("selected: " + List(event.currentTarget).selectedItem.label); } </mx:Script> <mx:List change="handleChangeEvent(event)"> <mx:dataProvider> <mx:Array> <mx:Object label="A" /> <mx:Object label="B" /> <mx:Object label="C" /> </mx:Array> </mx:dataProvider> </mx:List> </mx:Application>