I am creating flex application in which I am using spark states.
State 1: is a initial page.
State 2: Having radio button, Submit and Cancel Button.
Now my problem is ..
When I move to State 2 from State 1 and click on radio button then Submit Button gets enabled and from this If i click on Cancel Button it returns to State 1 now suppose if I again go to State 2 then whatever operation I have did in last state it still remains same means Submit button enabled and clicked radio button.
So anybody help me how can I reset State when I revisiting the same state?