If you must have a global variable, consider using a static class or a singleton class instance. This saves passing references all over the place in your application.
Treat global variables with care though - you are building dependencies between components. Paul ----- Original Message ----- From: Fotis Chatzinikos To: [email protected] Sent: Wednesday, February 11, 2009 12:54 PM Subject: Re: [flexcoders] Global variable embed the image in the main application and pass references of it where needed On Wed, Feb 11, 2009 at 2:51 PM, christophe_jacquelin <[email protected]> wrote: Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [email protected],

