复制内容到剪贴板
代码:
import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
MovieClip.prototype.imgfilters = function(blurx, blury, quality, spd) {
if (!this.ori_blurx) {
this.ori_blurx = this.ori_blury = 0;
} else {
this.t1.stop();
this.t2.stop();
}
var t = this;
this.t1 = new Tween(this, "xpos", Strong.easeOut, this.ori_blurx, blurx, spd, true);
this.t2 = new Tween(this, "ypos", Strong.easeOut, this.ori_blury, blury, spd, true);
this.t1.onMotionChanged = function() {
t.ori_blurx = this.position;
t.filters = [new BlurFilter(t.xpos, t.ypos, quality)];
};
this.t2.onMotionChanged = function() {
t.ori_blury = this.position;
};
};
//blurx, blury, quality, spd
mc.imgfilters(60,0,1,5);
mc.onRelease = function() {
this.imgfilters(random(100),random(100),random(5) + 1,2);
};改了下,加了点东西
[
本帖最后由 蓝色月光 于 2008-6-14 17:49 编辑 ]