Well, I am not sure what your code is doing, but the example I posted 
does work.

Have you declared the variable in the main application class?

You have to declare the variable from the main application class. You 
can then set / change / access it from anywhere.

If you cant declare it from the application class, then look at using a 
custom singleton (check the comments on my post).

mike chambers

[EMAIL PROTECTED]


elad_nyc wrote:
> 
> 
> It didn't worked...
> 
> I have debuged the application and I can't see the variable anywhere.
> 
> The global variable is declared inside of a component and than I need
> to attach it from the main application.
> 
> So when I try to pick up the global variable I get an error message:
> "public var foo:String = com.view.example.Globalfoo;"
> 
> Thanks for the help

Reply via email to