1 Reply Latest reply on Jun 28, 2009 10:06 PM by Benoitcn

    How to use embed metadata in Flex4 in css

    Benoitcn Level 1
      I try to use a bitmap be the background of the titlewindow conponent in flex4 ?
      I write this, but it doesn't work. It still show the default spark style.
      <fx:style>
      @namespace s "library://ns.adobe.com/flex/spark";
      @namespace mx "library://ns.adobe.com/flex/halo";
      mx|TitleWindow
      {
      background-image: Embed("assets/background/titlewindow.png");
      font-size: 24;
      }
      </fx:style>
      <mx:TitleWindow id="btnClickWindow" showCloseButton="true" styleName="firstrate" width="200" height="300" title="title">
        <s:Button label="Button"/>

      </mx:TitleWindow>
        • 1. Re: How to use embed metadata in Flex4 in css
          Benoitcn Level 1

          If I write like this, the Titlewindow is still no background image. ~~

          But I can change the font-size and others in css like this:

           

          mx|TitleWindow{

               font-size:44; /* it works */

          }

           

          <mx:TitleWindow id="btnClickWindow" showCloseButton="true" width="200" height="300" title="title"

          backgroundImage="@Embed('assets/background/titlewindow.png')">
            <s:Button label="Button"/>
          </mx:TitleWindow>