Not sure that will work as the css module might take a few frames to
load.

 

I would just make everything invisible until the css module is done.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Igor Costa
Sent: Monday, April 07, 2008 2:22 PM
To: [email protected]
Subject: Re: [flexcoders] Runtime CSS Switching at App Startup

 

Marrittw

 

For your solution I guess you could call applicationComplete Handler.
And works most of time.

For your function unload the default and than load yours.

 

Regards

Igor Costa

 

On 4/7/08, merrittwchapman <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

I have an application that needs to be styled based on a URL variable.
I'm having trouble 
applying the style BEFORE the application starts displaying controls.

When the app loads, a login Panel is displayed in the default look and
feel (gray) until the 
StyleManager runs as part of an init method called from the
creationComplete method. So 
basically, the default style is initially shown for a split second and
then it switches to the 
correct style.

How can I force the style to load before the UI is displayed? I've tried
calling the 
StyleManager in preinitialize functions, but that isn't working.

Any thoughts would be appreciated. 

Thanks!
MC 




-- 
----------------------------
Igor Costa
www.igorcosta.com <http://www.igorcosta.com> 
www.igorcosta.org <http://www.igorcosta.org>  

 

Reply via email to