I am creating an application in which I am using Tabbar and then referring separate canvas for each tab using viewstack.Now I have a button in in one tab and on click of the button i need to open another tab.For reusability i have created separate mxml for each functionality of subtabs.Please help me on how to link the click of button in one tab screen to another tab.
Thanks in advance.
I would suggest creating a custom event that contains the index of the tab (viewstack child) you are wanting to move too. The button would dispatch the event and the tab navigator would require an eventListener to listen for the event type. The handler for the eventListner would then take the index passed and make the change myViewStack.selectedIndex=2 (or whatever the custom event contained)
Note: you could also pass the name of the tab you were wanting to move to and set it that way.