It turns out the scaling doesn't like SWF files for some reason?! I thought you could use SWFs and scale-9?
This code works just fine: <mx:Image maintainAspectRatio="false" y="53" width="100%" height="39" source="@Embed(source='/assets/TopPageSeparator.png', scaleGridTop='0', scaleGridBottom='39', scaleGridLeft='732', scaleGridRight='734')"/> This code does not (notice the only different is the extension): <mx:Image maintainAspectRatio="false" y="53" width="100%" height="39" source="@Embed(source='/assets/TopPageSeparator.swf', scaleGridTop='0', scaleGridBottom='39', scaleGridLeft='732', scaleGridRight='734')"/> Is this intended behaviour or am I missing something? Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 15 November 2007 09:36 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Scale-9 scaling in a horizontal plane only I should also state the original image is 800 pixels wide (800x39). Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 14 November 2007 17:37 To: flexcoders@yahoogroups.com Subject: [flexcoders] Using Scale-9 scaling in a horizontal plane only Hi, how can I stretch an image horizontally only using scale-9? I'm using the following MXML: <mx:Image source="@Embed(source='/assets/TopPageSeparator.swf', scaleGridTop='0', scaleGridBottom='39', scaleGridLeft='732', scaleGridRight='733')" y="53" width="100%" height="70"/> But it's not working - the image is 39 pixels high, and for the width to scale I must also increase the height (notice it's set to 70). How do I get an image to scale with scale-9 horizontally? I'm not bothered about vertical, that can just stretch as normal if required. Thanks, Mark