I have a tabNavigator, and I am trying to hide some of the tabs.
I have tried the obvioius
visible="false" //this did not work
includeInLayout="false" visible="false" //and this did not work and finally
var secondTab = tabNavigator.getChildAt(1);
secondTab.visible = false;
secondTab.width = 0; // this hides the contents of the tab, but the tab is still visible.
Why does it have to be so compliated, so unintuitive?
Ok found a way to do it:
var secondTab= tabNavigator.removeChildAt(1);
deleting it is one way of hiding it
the above makes use of BindingUtils which is an Actionscript strategy for binding. so you bind, say, a boolean variable or function return to the visible property