Dan Hanly
Dan Hanly

Reputation: 7839

Blur Tween in AS3

I wish for a movie clip to slowly blur over a couple of seconds. Is there some way to do this without using Tweener or some other external class? I only wish to use the tween class.

The code I use at the moment is below, but this doesn't do it gradually, just turns the blur on like a switch:

var blur : BlurFilter = new BlurFilter();
blur.blurX = 4;
blur.blurY = 4;
blur.quality = BitmapFilterQuality.HIGH;
chrNicky.filters = [blur];

I need the blur to happen over the course of two seconds.

Cheers, Dan

Upvotes: 1

Views: 4380

Answers (1)

Vladimir Tsvetkov
Vladimir Tsvetkov

Reputation: 3013

You can check out the following article I wrote few years ago:

Adding Directional Motion Blur to APE (AS Physics Engine)

My article also includes an isolated Flex-sample which demonstrates how to add directional motion blur to a tween. Also it explains the how the implementation works in principle.

Download Directional Motion Blur Sample

Upvotes: 1

Related Questions