4 Replies Latest reply on Jun 24, 2011 8:54 AM by cfjedimaster

    TabbedViewNavigator, issue with setItemAt

    cfjedimaster Level 3

      Given a TabbedViewNavigator defined like so:



      <s:ViewNavigator label="Login" firstView="views.LoginView" width="100%"/>

      <s:ViewNavigator label="Register" firstView="views.RegisterView" width="100%"/>


      If I replace the first tab later on like so:
      var vn1:ViewNavigator = new ViewNavigator();
      vn1.firstView = views.HomeView;
      vn1.label = "Home";
      The label in the tab does change, but firstView continues to be loginView. Even clicking away and returning doesn't work.