Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Julien Vignali
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.

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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 =

Re: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread eric dolecki
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. -

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Merrill, Jason
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:

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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

Re: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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 {

Re: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Merrill, Jason
] [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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
] [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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
] [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

Re: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread eric dolecki
-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

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Merrill, Jason
: 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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Merrill, Jason
: [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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Julien Vignali
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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Tom Lee
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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
:[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

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Tom Lee
. -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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves
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

Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Charles Parcell
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