You can also just declare

 

    public var testValue:String;

 

and access it from other components as
Application.application.testValue.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of yigit boyar
Sent: Friday, May 30, 2008 3:32 AM
To: [email protected]
Subject: Re: [flexcoders] Sharing bindable data between mxml files in
different project folders

 

If you want to share data between different files,
the best approach is to implement a singleton Model class.

On Fri, May 30, 2008 at 1:31 PM, <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Hi All, 

Could any one help me in how can I share a set of string variables
available in my homePage.mxml to be available to all other mxml files as
well as with the script blocks in other mxml files in the same project
as well, on the other referenced flex projects as well.

Initially I tried with 

Approach 1: 
[Bindable] 
public static var TestValue:String = null; 
However this bindable value was not visible in other mxml files. 

Thanks in advance for your time and help. 

Regards, 
Madhu K 

Please do not print this email unless it is absolutely necessary. Spread
environmental awareness. 

 

 

Reply via email to