Flex application background color flicker

I just ran across a very odd bug in Flex. If you want to change the background color of the application as it loads to anything other than the plain grey you can set the "backgroundColor" attribute of the mx:Application container. This is the background color that gets displayed during the application loading, once it has loaded the background flips over to the gradient background (which you can also control).  The "backgroundColor" attribute is the same for all flex components, and they all take any hex color value (ie #ffffff - white, #ff0000 - red, etc). All except the mx:Application that is. You have to prefix the value with '0x' (zero x) instead of '#'. I have no idea why, but it caused me a slight headache getting that little oddity sorted out so my application's background didn't flicker between white and black during loading.

2 Comments:

  1. Arthur Nemirovsky

    Derrick, Thank you very much, this was helpful.

  2. Eric

    Thank you! That was killing me.


Leave a comment

Name: (required)

Email: (required)

URL:

Captcha test: (required)
Comments: (required)