This content has been marked as final. Show 5 replies
Declare the variable outside any function in the main app mxml file and it will be global, though you will need to refer to it with Application.application.myVariable outside the main app mxml file.
You can also use static members of a class.
Greg, should not the loginName variable be public ?
Likewise, you can use the model pattern.
thank you guys
I use the Creg's method, works perfect for my situation.
Thanks a lot.
Oh yeah, I guess for a global it probably should be public.