Using an event object to pass information about selected tab
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white"> <mx:Script> import mx.controls.Alert; import mx.events.IndexChangedEvent; private function handleChange(evt:IndexChangedEvent):void { Alert.show(evt.currentTarget.selectedIndex + " Label: " + evt.currentTarget.selectedChild.label); } </mx:Script> <mx:TabNavigator width="200" height="100" id="myTabNav" change="handleChange(event)"> </mx:TabNavigator> </mx:Application>