Question about states

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Question about states

    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
    [url]http://livedocs.adobe.com/flex/201/langref/mx/states/State.html[/url] 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?

    Thanks

    dimival Guest

  2. Similar Questions and Discussions

    1. Transitions between states
      Where can I learn about transitions between states. In the storefront example, when you click certain links / buttons, it moves the areas around in...
    2. Anyone have a map of the USA with the states outlined?
      I'mm now in search of a map with the US and all the states outlined. Point me in the right direction, or email it to me, and it would be greatly...
    3. [PHP] countries,states and cities
      Augusto Cesar Castoldi <mailto:accastoldi@yahoo.com.br> on Monday, September 08, 2003 4:16 PM said: I don't know but I would also be interested...
    4. button states
      why not load all your seperate swf`s at the start and use a preloader. You can set _visible to false.
    5. [PHP] states
      > > Does anyone know of any built in functions or options for the US states? Hi Matt Look at...
  3. #2

    Default Re: Question about states

    That's the way it is supposed to work. If you want to reset the controls you do have to write code to change them back.
    peterent Guest

  4. #3

    Default Re: Question about states

    I see, thought there was some "automatic" way to force them to reset on each state change, oh well thanks anyways.
    dimival Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139