原文件下载 |
stop();
import flash.filters.BlurFilter;
var blur:BlurFilter = new BlurFilter(5, 5, 2);
//初始化滤镜
var maxblurdistance:Number = 5;
myMC.filters = [blur];
onMouseDown = function () {
//在按下鼠标时响应~
tempx = _xmouse;
//记下鼠标位置
tempy = _ymouse;
onEnterFrame = function () {
var dx = tempx-myMC._x;
var dy = tempy-myMC._y;
myMC._x += dx/2;
myMC._y += dy/2;
//缓动
blur.blurX = Math.abs(dx/2);
blur.blurY = Math.abs(dy/2);
//产生模糊~
myMC.filters = [blur];
//追加滤镜
updateAfterEvent();
};
};
[如需转载请注明出处]
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |