views:

56

answers:

0

Hi,

I am trying to use image as a background of my application, I have not success :(

Here is the code which shows how I do it:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" borderColor="#ECEEEF" color="#000000" cornerRadius="5"
creationComplete="main()" xmlns:MyComp="components.*" backgroundGradientAlphas="[0.0, 0.0]">

And the style:

<mx:Style>
    Application{
     background-image: "resources/Kaya.png";
     background-color: #FFFF00;
    } 
</mx:Style>

Strange but when I am running my application in browser, I see just default gray background... Instead of defined in style....

Also strange that in design view I see the style applied. http://img.skitch.com/20091129-xtgqsc6ed41nmh4ye24129gag2.png

Maybe I am missing something?