2 Replies Latest reply on May 28, 2007 11:19 AM by Fireteller

    Spacer image scaling

      I have the following code to create a stretchable background image for a title bar. titleBar_2.png is a single pixel wide image that should be stretched or duplicated to fill the title bar.

      <mx:HBox horizontalGap="0" width="100%">
      <mx:Image source="@Embed('../../../assets/titleBar_1.png')" scaleContent="false"/>
      <mx:Image source="@Embed('../../../assets/titleBar_2.png')" width="100%" scaleContent="true"/>
      <mx:Image source="@Embed('../../../assets/titleBar_3.png')" scaleContent="false"/>

      This does not produce the desired results. The image is placed properly but not scaled at all, so that there is a white space in the area where the image should have been stretched, followed by the last image.

      Anyone know what's going on and how to fix it?