It seems even after changing the code in this article:
http://www.adobe.com/devnet/flex/quickstart/embedding_assets/#EmbeddingI
magesScale9 you can't scale in just one direction - the scaling is
restricted to the aspect ratio of the scale-9 grid that's in use. If you
scale by 10 pixels to the right, you must scale 10 pixels down too.

 

Is there *anyway* around this? I really don't want to have to resort to
splitting my image up into left, centre and right images.

 

Mark

 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 15 November 2007 09:36
To: [email protected]
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: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 14 November 2007 17:37
To: [email protected]
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

 

 

 

 

Reply via email to