However, a good preloader does not reference any UIComponent based classes otherwise they have to be loaded before the preloader can show up (which defeats the purpose of a preloader). I would use the systemManager to do communication. The preloader and the application can both see it. The systemManager even dispatches an applicationComplete event when the application signals that it is ready.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of maximecowez Sent: Monday, September 01, 2008 6:55 AM To: [email protected] Subject: [flexcoders] Re: Communication between custom preloader and the application Hi João, the mx.core.Application class has a static getter 'application', so once your application is initialized you can simply reference your application using Application.application from within tour preloader class. like this: addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler); private function initCompleteHandler(event:Event):void { Application.application.doSomething(); //or Application.application.addEventListener(Event.SOME_EVENT, someHandler); } hope this helps, Max --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, João <[EMAIL PROTECTED]> wrote: > > Hello, > > I have created a custom application preloader as described here: > http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php > > I need my preloader to communicate with the application, by > dispatching an event or calling a method on the appliaction where it > resides, but I'm not being able to make them communicate. > > Any suggestions? > > Thanks, > > João Saleiro >

