I think this will solve your issue: public var strGlobal:String = "Global";
That said... If you define something like this inside a component, then it will have to be referenced by componentname.strGlobal from within the components or applications that use that component. I would expect accessing 'strGlobal' might confuse things. If you define something like this inside the application file, then you probably want to pass it as a parameter to components who need it instead of having the component access the external value internally (<-- if that's even possible). ( Disclaimer: I'm still learning too; and may be slightly off base ) At 06:47 PM 2/5/2007, you 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? -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com> Connecticut Macromedia User Group: <http://www.ctmug.com>
