import mx.core.UIComponent;
public function disableTab(value:int = 0):void{
if(value == 0){
(navigator.getChildAt(navigator.numChildren - 1) as UIComponent).enabled = false;
}
else
{
(navigator.getChildAt(value) as UIComponent).enabled = false;
}
}