0 Replies Latest reply on Jan 10, 2007 12:33 AM by ryanmohr

    scale9... no luck so far

    ryanmohr
      Isn't scale9 supposed to be easy in Flex? I'm using the mac version of Flex Builder 2 and I can't seem to get it to work. Scale9 works just fine for me in Flash 8, but when I publish the swfs and bring them into flex, flex just seems to ignore them (the swfs load just fine, but they stretch like a normal non-scale9 movie would). I also tried using the scaleGrid* style methods available in flex to try to get the scaling to work correctly (source is below). Didn't work there either.

      What could I be doing wrong?

      ## source for scaleGrid* approach
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Style>
      .decoratedCanvas {
      background-image: Embed(source="../swfs/scale9.swf",
      scaleGridLeft="20",
      scaleGridTop="20",
      scaleGridRight="80",
      scaleGridBottom="80");
      background-size: "100%";
      }
      </mx:Style>
      <mx:Canvas styleName="decoratedCanvas" width="100%" height="100%">
      </mx:Canvas>
      </mx:Canvas>