You can almost certainly write a Hydra filter for this. You can do it
AS-native with BitmapData.

9-slice scaling can't do what you're hoping for, as I understand it. It will
only scale the top and bottom "centers" when scaling left and right, the
left and right "centers" when scaling up and down, the center slice in all
cases, and never the corners.

If you want something *very* roughly like the genie effect (where the top
and bottom scale but not the middle, or vice-versa), you'll need to write
something for that. There are bunch of examples like this if you want to
think a bit about what to search for. I can think of the genie effect, an
old-school waving flag or skew, etc., all of which cut the object into
slices and manipulate them individually.

In fact, this is required when using 9-slice on a bitmap. You have to cut
the BM along the lines of the scale-9 rect so the auto scaling will work
properly. (You can do it manually before importing, too, but that's
obviously not dynamic.)

Another thing that was quite popular was the slice-distortion of a single
image--the first I saw was the Mona Lisa--depending on where you hovered
your mouse. I just did a search for "mona lisa actionscript" with no luck,
but this might jog some gray cells into action.

You might also look for an ActionScript goo/liquify example which would
demonstrate a displacement map approach. I think Grant did one of Mike
Chambers. 

I'll try to pull this into focus when I have a clearer head and maybe I can
think of a concrete link or two.

R


On 5/20/08 1:35 PM, "eric e. dolecki" <[EMAIL PROTECTED]> wrote:

> While I don't seem to be able to do this easily, I am applying scale9grid to
> sorta do what I want. I was hoping for incremental stretching on the
> sides... maybe that is something I'll be able to do using a hydra filter or
> something in FP10.

Rich
http://www.LearningActionScript3.com


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to