Blur Tween in AS3

寵の児 提交于 2019-12-24 10:15:02

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/3727537/blur-tween-in-as3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!