PDA

View Full Version : Help!!!


gghazaryan
04-15-2008, 01:04 PM
Hi everybody.
Hope somebody will help me.

Here is my first tag in mxml:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:configLoader = "GUIConfiguration.*" applicationComplete="complete(event)" preloader="preload.PokerPreloader2" backgroundColor="0xffffff">


As you see backgroundColor is set to white.
When I loaded css in runtime with Application background set to red background didnt change.
Most interesting part is that after removing backgroundColor="0xffffff" attrubute from main tag, CSS started to work.... why ???



/* CSS file */
Application {
backgroundColor: #ff0000;
}


Thanks

gghazaryan
04-15-2008, 01:49 PM
Problem solved.

I have changed the css file, new one looks like this:
Application {
backgroundColor: #ff0000;
backgroundGradientColors: #ff0000, #ff0000;
}