[flexcoders] Re: scale9Grid: What am I missing?
--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > 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 >); > } Thanks :-)
[flexcoders] Re: scale9Grid: What am I missing?
--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > 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: > > I tried using a canvas with a backgroundImage in my AIR application, and it wouldn't show up (the application has no chrome and is transparent). I can _try_ this, but I have the feeling it will disappear. Thanks; Amy
[flexcoders] Re: scale9Grid: What am I missing?
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: -TH --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "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 >
[flexcoders] Re: scale9Grid: What am I missing?
--- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> 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
Re: [flexcoders] Re: scale9Grid: What am I missing?
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. :) Mike On Tue, Sep 23, 2008 at 11:51 AM, Amy <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com , "Amy" > <[EMAIL PROTECTED]> wrote: > > > > --- In flexcoders@yahoogroups.com , > "Michael Schmalle" > > wrote: > > > > > > 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)] > > > > OK, thanks :-) > > > > Oops...I tried this and it didn't work :-(. > > > -- 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'.
[flexcoders] Re: scale9Grid: What am I missing?
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Michael Schmalle" > wrote: > > > > 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)] > > OK, thanks :-) > Oops...I tried this and it didn't work :-(.
[flexcoders] Re: scale9Grid: What am I missing?
--- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > 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)] OK, thanks :-)