You might want to take a look at the following blog post which discusses
preloaders.

 

http://www.onflex.org/ted/2006/07/flex-2-custom-preloaders.php

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of bartonlistick
Sent: Friday, February 16, 2007 4:43 PM
To: [email protected]
Subject: [flexcoders] How to show theme when app is loading?

 

I'm trying to figure out how to seemlessly display my theme's 
gradient (or background image) right at the start of the load phase 
and all the way through initialization. In other words, I don't want 
the default theme during the load, with a visual "glitch" when my 
custom theme kicks in.

Here's what I've learned so far:

- If you set the style on the app's "initialize" 
or "preinitialize", those changes aren't visible during the app's 
loading phase, so you end up getting the default theme until the 
loading is complete.

- The backgroundColor property takes effect right at the start of 
loading, but backgroundGradientColors (to get a nice gradient during 
the load) doesn't seem to work.

- The backgroundImage property will display an image after about 1 
second (into the load), but the image doesn't fill the window (i.e. 
it isn't scaled) until after the load.

Anyone have any ideas?

 

Reply via email to