AS3 中的模糊补间
我希望影片剪辑能够在几秒钟内慢慢模糊。有没有办法在不使用 Tweener 或其他外部类的情况下做到这一点?我只想使用补间类。
我现在使用的代码如下,但这并不是逐渐执行的,只是像开关一样打开模糊:
var blur : BlurFilter = new BlurFilter();
blur.blurX = 4;
blur.blurY = 4;
blur.quality = BitmapFilterQuality.HIGH;
chrNicky.filters = [blur];
我需要在两秒钟的时间内发生模糊。
干杯, 担
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看我几年前写的以下文章:
向 APE(AS 物理引擎)添加方向运动模糊
我的文章还包括一个独立的 Flex 示例,演示如何向补间添加方向运动模糊。它还解释了实现的原理。
下载定向运动模糊示例
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