Action Script
private function indexChangeHandler(event:IndexChangedEvent):void {
switch(priceTab.selectedIndex)
{
case 0:
trace('click tab 1');
break;
case 1:
trace('click tab 2');
break;
}
}
MXML
<mx:TabNavigator id="priceTab" change="indexChangeHandler(event)">
</mx:TabNavigator>
http://icediv.javaeye.com/blog/352000
沒有留言:
發佈留言