Background repat in Flex 3

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-03-18T18:48:47Z Indexed on 2010/03/18 18:51 UTC
Read the original article Hit count: 355

Filed under:
|
|

Hello everybody,

I am trying to set a background to a canvas, and set an repeat-x on it. But anything I try don't work. I am using this code:

<mx:Style>
    Canvas.topbar {
        borderColor: yellow;
        alpha: 1.0;
        backgroundImage: url('../assets/images/header.png');
        backgroundRepeat: x-repeat;
    }
</mx:Style>
<mx:Canvas height="25" top="0" left="0" right="0" styleName="topbar">
    <mx:Label x="2" y="4" text="{system_name} {system_version}" height="15"/>
</mx:Canvas>

But it won't work:(

What is wrong with the code?

© Stack Overflow or respective owner

Related posts about repeat

Related posts about flex