Now I have a possible solution:
CustomPreloader:
private function onFlexInitComplete(event:Event):void
{
//now we can access the Application.application
Application.application.addEventListener(AppReadyEvent.READY,
onAppReadyEvent);
}
private function onAppReadyEvent(event:AppReadyEvent):void
{
dispatchEvent(new Event(Event.COMPLETE));
}
Application:
//dispatch AppReadyEvent if you want remove the preloader
Application.application.dispatchEvent(new
AppReadyEvent(AppReadyEvent.READY));
What do you think about it?
--- In [email protected], "dave_defusion" <[EMAIL PROTECTED]>
wrote:
>
> I'm just trying to do the same thing for our app today and there must
> be a way, surely it's quite a common requirement. All I want to do is
> load the runtime styles & a quick check to the backend, but the
> loading the styles is the most important thing.
>