And the official word is that scale9 does not work on bitmaps.

 

If you embed the PNG we generate some code that will do it.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of walsaadie
Sent: Thursday, August 30, 2007 2:01 PM
To: [email protected]
Subject: [flexcoders] Re: scale9Grid on flex image control. does it
work?

 

Just a plain PNG image

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What is the content of the image? Another SWF? JPG?
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of walsaadie
> Sent: Thursday, August 30, 2007 4:28 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: scale9Grid on flex image control. does it
> work?
> 
> 
> 
> I tried what you suggested.
> Odd thing is that updateComplete gets called twice when triggered 
by 
> the complete event. Even ignoring the first call still returns the 
> same result.
> 
> But for some reason it still thinks one of the parameters is out of 
> range on the rectangle used by scale9Grid. So I'm faced with the 
same 
> error. I'm starting to think that using scale9Grid only works with 
> embedded assets
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > I know there are places where scale9 doesn't work. For some 
reason 
> I
> > can never remember them.
> > 
> > 
> > 
> > However, in this case, I would try waiting for "complete" event 
then
> > waiting for "updateComplete" (you'll get an updateComplete before
> > complete too so ignore that one).
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of walsaadie
> > Sent: Wednesday, August 29, 2007 3:54 PM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] scale9Grid on flex image control. does it 
> work?
> > 
> > 
> > 
> > Trying this simple bit of code:
> > 
> > var image:Image = new Image();
> > addChild(image);
> > image.source = "images/image.png";
> > image.maintainAspectRatio = false;
> > image.scale9Grid = new Rectangle(2,2,30,30);
> > 
> > the image size is 200 x 200 pixles
> > 
> > i also tried adding different event handlers like complete 
thinking 
> the 
> > content of the image hadn't loaded yet. but it's the same error 
> every 
> > time.
> > 
> > ArgumentError: Error #2004: One of the parameters is invalid.
> > at flash.display::DisplayObject/set scale9Grid();
> > 
> > my question is using the scale9Grid even possible on the image 
> control?
> >
>

 

Reply via email to