1 Reply Latest reply on Aug 28, 2007 8:17 AM by peterent

    Add "step" to link bar?

    Handycam Level 1
      I have an app based on a viewStack, with 7 components, and a linkBar that is used to switch steps.

      After the 7 steps are completed by the user, I need to make an 8th step "available" to them (a summary). Currently I have this last step as a pop-up titleWindow.

      So, my questoin is, can I add a step to the linkBar at runtime (or enable a disabled step) and if so, should I just add a script to pop the window, or add the titleWindow to the view Stack?

        • 1. Re: Add "step" to link bar?
          peterent Level 2
          You can add a step to the link bar by adding a child to the viewstack. Perhaps whatever it is you are popping up could be made the viewstack's new child. Just be sure to set the label property as that's what's used as the LinkButton label in the LinkBar.

          var newchild:YourClass = new YourClass();
          newchild.label = "Final Step";
          viewstack.addChild(newchild);
          viewstack.selectedChild = newchild;