Check the Flash docs... It's explained ;-)
mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);
Marcos Neves a écrit :
How can I use programaticlly scale9grid to don´t deform a roundRect when
scaled?
I´know how it works at design time on flash.
No so clearly Julien,
if(I create a rectangle with exact the same size of my sprite, it
throw me that error. I bust make it at least 1 pixel small. It´s not
on the docs :\
On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
Check the Flash docs... It's explained ;-)
mcRoundedRect.scale9Grid =
Marcos,
If you made the rectangle the same size as your sprite - there would
be no scale9 to speak of. It has to be smaller than the mc. You know
how it works from implementing it in the IDE, so you know that there
must be outside area that is left untouched, the interior does the
scaling.
-
If it gets too messy, you can also roll your own scale 9 function for graphics
- that's what I did since I'm building for Flash 7. It's pretty easy actually.
Jason Merrill
Bank of America
Learning Organization Effectiveness - Technology Solutions
-Original Message-
From:
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
If it gets too messy, you can also roll your own scale 9 function for graphics
- that's what I did since I'm building for Flash 7. It's pretty easy actually.
Jason Merrill
Bank of America
Learning Organization
Does any body can tell me what´s wrong with this code?
The problem is that the scale9grid is not doing his job.
The bt.swf embed has size of 100x22.
But the trace at the end ignores it´s size. Why?
Where scale9grid should be applied to work? I try many sprites but none work.
package
{
This is the bt.swf
http://neves.bs2.com.br/as3/bt.swf
As you can imagine, I´m trying to scale only inside the black wire
rectangle using the scale9grid.
On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
Does any body can tell me what´s wrong with this code?
The problem is that the scale9grid is
] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
If it gets too messy, you can also roll your own scale 9
] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
If it gets too messy, you can also roll your own
] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
If it gets too messy, you can also roll your own
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill
: Thursday, July 20, 2006 9:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
I used that two. You call the scale9 function when? How do you know
when it need to be updated?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
Well, what I did is make 9 parts to my
Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 9:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
I used that two. You call the scale9 function when? How do you know
when it need
: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 10:02 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
You call scale inside the X,Y,height,Width assessors, right?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED
Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED]
wrote:
If it gets too messy, you can also roll your own scale 9
function for graphics
Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
And how it can be done?
On 7/20/06, Merrill, Jason [EMAIL PROTECTED]
wrote:
If it gets too messy, you can also roll your own scale 9
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
Thanks Julien,
Your example open my mind. Now I know that scale9grid is not powerfull
as I
:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
Thanks Julien,
Your example open my mind. Now I know that scale9grid is not powerfull
as I thought.
Here some conclusions that I found based
.
-tom
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
I´m using for interface components too. I import a png button and
align
Of Marcos Neves
Sent: Thursday, July 20, 2006 2:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to
I´m using for interface components too. I import a png button and
align the guides to my needs. But it doesn´t work.
I found an ugly workaround for this.
Textfields
Here are my thoughts.
Based on the image you passed on in one of your previous postings, it looks
like you are building a drop down list component. I would assume that you
wanted slice9 so you could scale the component in the X direction for longer
strings. Is this a correct assumption?
You
21 matches
Mail list logo