No. You would have to know all the initial values and write such a reset method yourself. Flex components don't remember the initial values of their properties. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston Sent: Thursday, September 13, 2007 10:57 AM To: [email protected] Subject: [flexcoders] reset/invalidate property values 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 <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>

