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:navigators>

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

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

      </s:navigators>

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