Hi Amy,

Using the example in that you linked, I noticed that only the top and
left sides scaled as expected (quotes used).  Could be a bug in the
Image class.  However, by using the image as a borderSkin and CSS, I was
able to get it to scale properly.  A possible workaround:

CSS:

.test
{
           borderSkin: Embed(source="embed9slice.png",
                scaleGridTop=25,
                scaleGridBottom=110,
                scaleGridLeft=25,
                scaleGridRight=110
           );
}

MXML:

<mx:Canvas styleName="test" width="450" height="450"/>

-TH

--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Michael Schmalle"
> teoti.graphix@ wrote:
> >
> > Ok,
> > I think that needs to be without quotes but Jon is probably right,
> you need
> > to try setting some sort of height.
> >
> > When you get it working, try it with the quotes, then you can be
> sure. :)
>
> I tried that, and it didn't work either. It seems, though, that the
> graphic will scale smaller, but if you go larger than the native size
> the middle doesn't stretch and the ends don't move.
>
> Thanks;
>
> Amy
>


Reply via email to