You could use a static Class/Singleton to give you a single variable accessible from anywhere.
Paul ----- Original Message ----- From: "Ben Marchbanks" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Saturday, September 08, 2007 11:01 PM Subject: [flexcoders] Global variable - Best Practice >I have an application in which I current set a [Bindable] variable > "baseURL" to the application URL. I have been accessing this variable > from other components in the app using this.parentDocument.baseURL. > This is a clunky solution since components may have their own children > so I windup with this.parentDocument.parentDocument.baseURL - What is > the best way to create and reference an application wide variable ? > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >