I have a ViewStack controlled by a ToggleButtonBar.
The user selects Tab1, then Tab2, then Tab1 again.
How can I make it so that when he goes back to Tab1 to be rendered in its initial state rather then show it as it was modified by the user from the first visit? Basicaly reset it to the initial state.
Any thoughts on how I can reset the children to their initial state in a ViewStack?
You could use the show/hide events to trigger a state change.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services
What do you mean?
I change ViewStack children using the TabNavigator.
What I wanted is if for example I have a form in one of the children, when the user switches to another child, clear the form.
I know I can write a function for that and call it when the child of the ViewStack is changed, but there's more than just forms.
I was hoping for a way to reset or reinitialize a child to it's initial form.