2 Replies Latest reply on May 21, 2008 8:33 AM by dimival

    Question about states

    dimival Level 1
      I've noticed that whenever you change between states, the controls' values don't reset to their initial values. For an example if you add a TextInput and type anything on it, when you change to another state and then back to it the TextInput still has the text you typed. (You can try this using the Adobe's example on the States documentation http://livedocs.adobe.com/flex/201/langref/mx/states/State.html just go to the register state, type anything on the confirm textinput, then switch back to login state and once again to the register state).

      So the question is if there's a way to reset the values of the controls that you add on each state, i know i could manually reset them using the enterState and exitState events but it kinda sucks because if i have 200 textinputs i would have to manually reset their values.

      Any ideas?