RE: [flexcoders] Init Global Object Best Practice

2007-03-08 Thread Gordon Smith
If your Application's initialize handler has set public var init:Object; in the Application's , then you can access this Object from any class as Application.application.init if you import mx.core.Application. BTW, MXML files simply get translated by the MXML compiler into AS3 clas

Re: [flexcoders] Init Global Object Best Practice

2007-03-08 Thread Tom Chiverton
On Thursday 08 Mar 2007, thierrybertossa wrote: > With the Application's initialize event, I instanciate a unique -init- > Object. > How can I access This instance inside another Class ? Have you seen the ModelLocator in Cairngorn ? -- Tom Chiverton Helping to economically entrench efficient ne