Yep, JC's idea seems very doable. Or look into the upcoming version of
TweenLite/Max which uses a plugin architecture, so you could write your own
little plugin that would accomplish it. http://blog.greensock.com

Jack

-----Original Message-----
From: Hans Wichman [mailto:[email protected]] 
Sent: Friday, January 09, 2009 1:19 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Tweening a Bitmap Blur in combo
w/generateFilterRect?

Hi,

how about setting up a couple properties, and tween them using TweenLite,
calling your apply method using TweenLite's onUpdate method?

greetz
JC

On Fri, Jan 9, 2009 at 6:49 PM, Matt S. <[email protected]> wrote:

> So I'm applying a blur to a bitmap via the code below (a little clunky
> perhaps, this is for testing only), and it's accomplishing my goal,
> which is to blur a bitmap WITHOUT the annoying fuzzing out and fading
> away of the edges. I just want a uniform blur across the whole image.
> The tricky part, though, is that I want to TWEEN the blur, while
> preserving the generateFilterRect effect of having the blur go edge to
> edge evenly. I've looked at all the tween classes but none seem to
> allow for this. Does anyone know of a way to either tween an
> "applyFilter" for a bitmap, or else accomplish the same effect while
> simply blurring a movieclip or sprite?
>
> thanks,
>
> .matt
>
> var bmd:BitmapData = new BitmapData(157,157);
> bmd.draw(myRoot.testbitmap);
> var bFilter:BlurFilter = new BlurFilter(15.0,15.0,3);
> var filterRect:Rectangle = bmd.generateFilterRect(bmd.rect, bFilter);
> var bmdFinal:BitmapData = new BitmapData(157, 157, true, 0xFFFFFFFF);
> bmdFinal.applyFilter(bmd, bmd.rect, new Point(0, 0), bFilter);
> var bm:Bitmap = new Bitmap(bmdFinal);



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

Reply via email to