2 Replies Latest reply on May 13, 2008 8:33 AM by ntsiii

    View State Help

    anoweb Level 1
      I am trying to use States in my Flex 3 application. The application is run outside of the browser. The one thing I am hoping to improve upon is manual labor of removing and adding components when the states change.

      So for example if I have a login panel. Once the user logs in i want to go to a new view with some other components. Right now in my mx:State I have defined:

      <mx:RemoveChild .../>
      <mx:RemoveChild ../>
      <mx:AddChild ...>

      anyways...is there a better or nicer way of handling such things? I'm just curious because it seems like a bunch of work referencing these components all over the place. Just curious on how it might be done better.

      Thanks in advance.