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 --- In [email protected], Mike Chambers <[EMAIL PROTECTED]> wrote: > > fyi, > > I blogged a simple example here: > > http://weblogs.macromedia.com/mesh/archives/2007/02/global_variable.ht ml > > mike chambers > > [EMAIL PROTECTED] > > Mike Chambers wrote: > > > > > > Just define the variable in the main app class: > > > > public var foo:String; > > > > and access it from anywhere like so: > > > > Application.application.foo > > > > mike chambers > > > > [EMAIL PROTECTED] <mailto:mesh%40adobe.com> > > >
