Thanks Mike, I just learn how to use the custom singleton which is 
exactly what I needed.

My application is very complicated and I will have to create 
few "waiters" to serve all the information since the different 
component are accessing the same information.

keep up the great work...


--- In [email protected], Mike Chambers <[EMAIL PROTECTED]> 
wrote:
>
> 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