Hi, Does anyone know how i can reset/reinitialize a state in flex 3?
Let's say I have the following code:
<mx:states>
<mx:State name="Scene1">
<mx:AddChild>
<Scenes:Scene1 id="scene1"></Scenes:Scene1>
</mx:AddChild>
</mx:State>
<mx:State name="Scene2">
<mx:AddChild>
<Scenes:Scene2 id="scene2" models="{models}"></Scenes:Scene2>
</mx:AddChild>
</mx:State>
</mx:states>
And every time i go from 1 to 2 or 2 to 1, I wan't to recreate the entire State.