On quick and certain way to reset an app is to use navigateToURL, target
"_self", using Application.application.url.

 

Other than thay you will hve to do it programmatically.

 

Tracy 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of suri_boston
Sent: Thursday, September 13, 2007 3:35 PM
To: [email protected]
Subject: [flexcoders] Re: reset/invalidate property values

 

Any one??
i would like to reset an application.
anyone with a sample code to make it happen with states?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "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
<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>
>

 

Reply via email to