That was going to be an approach... and I would apply the "stretch" to the sides loaded in on top by hand in Photoshop (cementing the effect -- bad voodoo there). Then I thought it might be cool to do it using the BitmapData class somehow instead so I didn't need to worry about any cleanup, etc. as much as the image will be changing a lot, etc. I'm investigating Pixel Bender right now.
On Tue, May 20, 2008 at 1:48 PM, Steven Sacks <[EMAIL PROTECTED]> wrote: > Maybe this will work? > > Make two copies of the original MovieClip (if you're loading an image, load > it once into the first clip, then when it's done loading, load it into the > two others) for a total of three. > > Mask the left and right pieces to the width you want to show. Mask the > middle piece so those edges aren't showing. > > Determine the math that you would have to stretch each one of the slices so > that that portion would be stretched 15% (it will be more than 15% because > you would have to take into account the width of the entire clip) and set > their scalex to that value. > > Position their x so they're lined up correctly. > > Voila! > > > eric e. dolecki wrote: > >> I am looking to take a DO (movieclip), and stretch just the side edges, >> leaving the middle unstretched... so take an image, cut in 4 vertical >> pieces, and stretch the outside pieces out horizontally by like 15%. >> >> I could use DisplayObjects above the main one and just stretch those >> horizontally, but I really want to keep this contained to manipulations on >> the main object itself and not worry about creating and destroying others. >> >> Any ideas? >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

