[flexcoders] scale9Grid: What am I missing?

2008-09-23 Thread Amy
I have my image set up just like in the docs
http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html, 
but my image isn't actually scaling.  What am I missing?

This is my code:
[Embed(source='images/window.png', scaleGridTop='40', 
scaleGridBottom='185', scaleGridLeft='300', scaleGridRight='585')]
[Bindable]
private var windowImage:Class;

...

mx:Image id=backgroundImage source={windowImage} width=1000 /

The image is only 603 px wide, so it should stretch, but it's just 
sitting there like a lump.

Thanks;

Amy



Re: [flexcoders] scale9Grid: What am I missing?

2008-09-23 Thread Michael Schmalle
Hi Amy,
I remember something weird about this, try loosing the apostrophe's around
the numbers.

[Embed(source='images/window.png', scaleGridTop=40,
scaleGridBottom=185, scaleGridLeft=300, scaleGridRight=585)]

Mike





-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] scale9Grid: What am I missing?

2008-09-23 Thread Jon Bradley


On Sep 23, 2008, at 10:55 AM, Amy wrote:


mx:Image id=backgroundImage source={windowImage} width=1000 /


You're missing the height parameter. I think this is necessary -  
either as a percent or static value - to force the image component  
resize.


You can also try adding scaleContent=true to that.

cheers,

jon





Re: [flexcoders] scale9Grid: What am I missing?

2008-09-23 Thread Jon Bradley


On Sep 23, 2008, at 11:02 AM, Michael Schmalle wrote:

I remember something weird about this, try loosing the apostrophe's  
around the numbers.


Good catch.

I haven't run into that in a long time probably because I've been  
setting this stuff through AS now (or skins).


- j