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] elad_nyc wrote: > > > I am trying to see if it is possible to create a global variable that > will be avaliable throught the entire application. > > So far I had no success. I tried something like this: > > var strGlobal:String = "Global"; > > But I keep getting: "It will not be visible outside of this package" > > I am not sure if it is possible?! didn't the creators of flex thought > of creating something "sessions" so the application can use variables > globally? > >
