I found some workarounds at design time. But i´m still can´t use
[Embed] to include my vector or bitmap and use it as scale9grid.
Perhaps there´s some implications that I can´t see, to "Macromedia"
didn´t implement that.

"Some unique effects can be achieved by 9-slicing multiple movieclips and
then stacking them."
"Also, you can use a 9-sliced movieclip as a mask for another
movieclip, which could contain a textfield."

I´m curious about how to do that!

On 7/20/06, Tom Lee <[EMAIL PROTECTED]> wrote:
If you must use a bitmap, you might look into the Splice9 JSFL extension at
http://www.brajeshwar.com/downloads/jsfl/splice9/.  This extension is an
author-time solution to the problem.  If possible, however, I would suggest
converting your PNGs to vectors.  With the filters now available in Flash,
there isn't much that you can do with bitmaps that you can't do with
vectors.  Also, vectors often yield smaller file sizes, and scale without
degradation.

Instead of putting textfields and movieclips inside the 9-sliced movieclip,
how about putting them on top of it?  You might consider using the 9-sliced
clip as a background layer, and then controlling the width and height of the
textfields separately.

Some unique effects can be achieved by 9-slicing multiple movieclips and
then stacking them.  Additionally, you can put multiple shapes in the same
movieclip on different layers and all the shapes will be affected by
scale9grid.  Also, you can use a 9-sliced movieclip as a mask for another
movieclip, which could contain a textfield.

With a creative combination of techniques, you should be able to achieve the
desired result.  You may not be able to do it with 9-slice alone, however.

-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 the guides to my needs. But it doesn´t work.
I found an "ugly" workaround for this.
Textfields and movieClips inside would be good too.

On 7/20/06, Tom Lee <[EMAIL PROTECTED]> wrote:
> I'm curious how you originally intended to use 9-slice scaling - the uses
I
> would have for 9-slice would be interface component backgrounds and so
> forth, for which it would be far from useless.  If you tell us what you're
> trying to do, perhaps we can suggest an alternate approach?
>
> -----Original 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 thought.
> Here some conclusions that I found based on some tests:
>
> It doesn´t work with bitmap
> You can´t have movieClip inside it, only shapes.
> Nested MC with 9grid doesn´t work.
> The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
> Textfields too. :(
>
> Resuming, there are so restrictions that it became almost useless.
> Very sorry. :(
>
> But thanks every one for the hand. :)
>
> On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote:
> > Marco,
> >
> > If I remember well, you must publish your fla in order to test your
> > scale9 grid. You can't preview the results within the flash editor and
> > the scale9 guides (the 4 black dashed lines) are just visual "helpers".
> >
> > But, you can easily apply a scale9 grid to any movieclip at runtime,
> > even if you haven't previously enabled scale9 in the movieclip
> > properties...
> >
> > Here is a .fla file to illustrate this:
> > http://www.vignali.net/julien/scale9.fla
> >
> >
> > Hope it helps
> > Julien Vignali
> >
> >
> > Marcos Neves a écrit :
> > > That I did eric, how can I test to see if works? If I scale at the
> > > scene, It doesn´t works. When I export the swf, neither.
> > >
> > > On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote:
> > >> Make your rectangle a mc.
> > >> In the Library, right-click on the mc, choose properties
> > >> should be a checkbox @ bottom to enable scale9
> > >> you should see dashed rules appear in mc preview in Library
> > >> 2x click into, drag the rules around to set up your scale9
> > >>
> > >> On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote:
> > >> > Should someone give an example of how to use scale9grid in flash
> > >> authoring?
> > >> > I bitmap fill a rectangle with a checker pattern. The corners
should
> > >> > have no deformation, but it´s having.
> > >> >
> > >> > On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote:
> > >> > > 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 graphic,
> > >> > > >
> > >> > > > topLeft_mc
> > >> > > > topCenter_mc
> > >> > > > topRight_mc
> > >> > > > centerLeft_mc
> > >> > > > center_mc
> > >> > > > etc.
> > >> > > >
> > >> > > > Then, put those in a movieClip with the respective instance
> > >> names.  Then pass that clip to a scale function, also pass width and
> > >> height parameters.  Then in the function, do some calculations.
> > >> Something like this (this example attaches the scale 9 clip from the
> > >> library):
> > >> > > >
> > >> > > > private function scale9():MovieClip {
> > >> > > >        t = this.target_mc.attachMovie("scale9graphic ",
> > >> "scale9graphic_mc", theDepth);
> > >> > > >        t._x = x;
> > >> > > >        t._y = y;
> > >> > > >        x1 = 0;
> > >> > > >        x2 = t.topLeft_mc._width;
> > >> > > >        x3 = w-(t.topLeft_mc._width);
> > >> > > >        y1 = 0;
> > >> > > >        y2 = t.topLeft_mc._height;
> > >> > > >        y3 = h-t.bottomLeft_mc._height;
> > >> > > >        w1 = t.topLeft_mc._width;
> > >> > > >        w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
> > >> > > >        w3 = t.topRight_mc._width;
> > >> > > >        h1 = t.topRight_mc._height;
> > >> > > >        h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
> > >> > > >        h3 = t.bottomRight_mc._height;
> > >> > > >
> > >> > > >        t.topLeft_mc._x = x1;
> > >> > > >        t.topLeft_mc._y = y1;
> > >> > > >
> > >> > > >        t.topCenter_mc._x = x2;
> > >> > > >        t.topCenter_mc._y = y1;
> > >> > > >        t.topCenter_mc._width = w2;
> > >> > > >
> > >> > > >        t.topRight_mc._x = x3;
> > >> > > >        t.topRight_mc._y = y1;
> > >> > > >
> > >> > > >        t.centerLeft_mc._x = x1;
> > >> > > >        t.centerLeft_mc._y = y2;
> > >> > > >        t.centerLeft_mc._height = h2;
> > >> > > >
> > >> > > >        t.center_mc._x = x2;
> > >> > > >        t.center_mc._y = y2;
> > >> > > >        t.center_mc._width = w2;
> > >> > > >        t.center_mc._height = h2;
> > >> > > >
> > >> > > >        t.centerRight_mc._x = x3;
> > >> > > >        t.centerRight_mc._y = y2;
> > >> > > >        t.centerRight_mc._height = h2;
> > >> > > >
> > >> > > >        t.bottomLeft_mc._x = x1;
> > >> > > >        t.bottomLeft_mc._y = y3;
> > >> > > >
> > >> > > >        t.bottomCenter_mc._x = x2;
> > >> > > >        t.bottomCenter_mc._y = y3;
> > >> > > >        t.bottomCenter_mc._width = w2;
> > >> > > >
> > >> > > >        t.bottomRight_mc._x = x3;
> > >> > > >        t.bottomRight_mc._y = y3;
> > >> > > >
> > >> > > >        return t;
> > >> > > > };
> > >> > > >
> > >> > > > Jason Merrill
> > >> > > > Bank of America
> > >> > > > Learning & Organization Effectiveness - Technology Solutions
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > >>-----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, 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 Effectiveness - Technology
Solutions
> > >> > > > >>>
> > >> > > > >>>
> > >> > > > >>>
> > >> > > > >>>
> > >> > > > >>>
> > >> > > > >>> >>-----Original Message-----
> > >> > > > >>> >>From: [EMAIL PROTECTED]
> > >> [mailto:flashcoders-
> > >> > > > >>> >>[EMAIL PROTECTED] On Behalf Of Marcos Neves
> > >> > > > >>> >>Sent: Wednesday, July 19, 2006 4:34 PM
> > >> > > > >>> >>To: Flashcoders mailing list
> > >> > > > >>> >>Subject: [Flashcoders] scale9grid how to
> > >> > > > >>> >>
> > >> > > > >>> >>How can I use programaticlly scale9grid to don´t deform a
> > >> roundRect when
> > >> > > > >>> >>scaled?
> > >> > > > >>> >>I´know how it works at design time on flash.
> > >> > > > >>> >>_______________________________________________
> > >> > > > >>> >>Flashcoders@chattyfig.figleaf.com
> > >> > > > >>> >>To change your subscription options or search the
archive:
> > >> > > > >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >> > > > >>> >>
> > >> > > > >>> >>Brought to you by Fig Leaf Software
> > >> > > > >>> >>Premier Authorized Adobe Consulting and Training
> > >> > > > >>> >>http://www.figleaf.com
> > >> > > > >>> >>http://training.figleaf.com
> > >> > > > >>> _______________________________________________
> > >> > > > >>> Flashcoders@chattyfig.figleaf.com
> > >> > > > >>> To change your subscription options or search the archive:
> > >> > > > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >> > > > >>>
> > >> > > > >>> Brought to you by Fig Leaf Software
> > >> > > > >>> Premier Authorized Adobe Consulting and Training
> > >> > > > >>> http://www.figleaf.com
> > >> > > > >>> http://training.figleaf.com
> > >> > > > >>>
> > >> > > > >>_______________________________________________
> > >> > > > >>Flashcoders@chattyfig.figleaf.com
> > >> > > > >>To change your subscription options or search the archive:
> > >> > > > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >> > > > >>
> > >> > > > >>Brought to you by Fig Leaf Software
> > >> > > > >>Premier Authorized Adobe Consulting and Training
> > >> > > > >>http://www.figleaf.com
> > >> > > > >>http://training.figleaf.com
> > >> > > > _______________________________________________
> > >> > > > Flashcoders@chattyfig.figleaf.com
> > >> > > > To change your subscription options or search the archive:
> > >> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >> > > >
> > >> > > > Brought to you by Fig Leaf Software
> > >> > > > Premier Authorized Adobe Consulting and Training
> > >> > > > http://www.figleaf.com
> > >> > > > http://training.figleaf.com
> > >> > > >
> > >> > >
> > >> > _______________________________________________
> > >> > Flashcoders@chattyfig.figleaf.com
> > >> > To change your subscription options or search the archive:
> > >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >> >
> > >> > Brought to you by Fig Leaf Software
> > >> > Premier Authorized Adobe Consulting and Training
> > >> > http://www.figleaf.com
> > >> > http://training.figleaf.com
> > >> >
> > >>
> > >> _______________________________________________
> > >> Flashcoders@chattyfig.figleaf.com
> > >> To change your subscription options or search the archive:
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >> Brought to you by Fig Leaf Software
> > >> Premier Authorized Adobe Consulting and Training
> > >> http://www.figleaf.com
> > >> http://training.figleaf.com
> > >>
> > >>
> > > _______________________________________________
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to