I wish for a mo开发者_如何学Pythonvie 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
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
精彩评论