Use TabBar and ViewStack instead, and stop that crazy manipulation of the children. Just control access by manipulating the dataProvider of the TabBar only.
Tracy Spratt, Lariat Services, development services available _____ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pradeep Chaudhary Sent: Friday, February 05, 2010 11:26 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Issue in TabNavigator component Has anybody ran into similar behavior ? I am still not able to resolve it. Please help. On Thu, Feb 4, 2010 at 11:26 PM, Pradeep Chaudhary <pradeep.chaudhary@ <mailto:pradeep.chaudh...@gmail.com> gmail.com> wrote: I am trying to dynamically add tabs to a TabNavigator. Tabs are removed on certain event on the client and I need to add it again. Problem is that even though tabs are added correctly, the selected tab header is not correct. For example, If I have two tabs and the second tab is selected when they are removed. On adding the tabs again, first tab should be the selected one. But instead the second tab header is shown as selected but the content is of first tab. I have attached sample example for reference. Please suggest what do I need to do to fix the problem. Thanks in advance. Pradeep