0 Replies Latest reply on Jun 11, 2013 5:51 AM by samuel786431

    background with embed image

    samuel786431 Level 1


      I have a problem to set the background image to a border container. My code works only with:


      <s:BorderContainer backgroundImage="@Embed('/img/header.png')">


      If i try with



      [Embed(source = "/img/header.png", mimeType = "application/octet-stream")]

      private static const _HEADER:Class;

      public static const HEADER:ByteArray = new Resources._HEADER();




      <s:BorderContainer backgroundImage="{Resources.HEADER}">


      the browser can't find the image, why?


      Thanks in advance