Refreshing a Flex component?

It depends what you mean by "State If you have implemented states in your Flex Component, you can revert back to a previous state using: component. CurrentState = 'myInitialState If you are not talking about states, explicitly, but rather about the internal values of the properties of the component, then Flex does not keep a history of those property values. You can keep track of them yourself and reset them in the manually Once you do that, your component will be, effectively, in the initial state.

It depends what you mean by "State". If you have implemented states in your Flex Component, you can revert back to a previous state using: component. CurrentState = 'myInitialState'; If you are not talking about states, explicitly, but rather about the internal values of the properties of the component, then Flex does not keep a history of those property values.

You can keep track of them yourself and reset them in the manually. Once you do that, your component will be, effectively, in the initial state.

Flextras - Yeah I should be careful about using the word "state". I do not have an initialState defined. Why is it that calling initialize doesn't work?

Would it work if I first removed the accordion from the display list? Is there a global clearAll I can use? – totbar Jul 14 at 23:20 1 @totbar Removing an Accordion from the DisplayList will not change any of it's properties (except possibly the parent property).

I have no idea what calling Initialize does in relation to the Accordion. It is no a Flex LifeCycle method. You may benefit from reading up on the Flex Component Lifecycle.( help.adobe.Com/en_US/flex/using/… ).

That explains how Flex creates and initializes it's components. A lot of the "default" state of a Component depends on the properties you set. – URL2 Jul 15 at 1:47.

This is done in Flex 4. I know I can make a huge loop clearing each control individually and setting the selectedIndex of the accordion to 0. I was hoping for a simpler solution.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions