Hi Eugene,

In the state tag, you can set properties.  This will happen when you
change to the state:  Something like this:

<mx:states>
     <mx:State name="myFormState">
         <mx:SetProperty target="{myFirstFormField}" name="text"
value=""/>
         <mx:SetProperty target="{mySecondFormField}" name="text"
value=""/>
     </mx:State>
</mx:states>

-TH

--- In [email protected], "Eugene Louw" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> What is the best way to reset a form in flex. The problem I'm having
is
> going from one state to the other and returning to the state and the
form is
> still the same. This is exactly what I expect it to do,
> but in this case I want the form to be reset every time you come back
to the
> state with the form inside it?
>
> Kind Regards,
>
> --
> ------------------------------------------------
> Eugene Louw
> ------------------------------------------------
>


Reply via email to