Any one?? i would like to reset an application. anyone with a sample code to make it happen with states?
--- In [email protected], "suri_boston" <[EMAIL PROTECTED]> wrote: > > Hi, > i have a flex application with charts and it has some public variables > defined on top of the application. > > Is there a way, i can reset all the variables to its default values? > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > <mx:Script><![CDATA[ > [Bindable] > public var hAxisShowLabels:Boolean = true; > private function foo():void { > hAxisShowLabels = false; > } > private function fooinitialize():void { > //initialize back all the variables to its default values.. > //is there something like invalidateproperties or something like that. > //basically what i need is to redraw a chart starting from first > } > ]]></mx:Script> >

