点击浏览该文件 3年前不会做的效果,现在做做就象长大之后实现儿时的梦想一样。
以下复制第一桢即可:
_root.createEmptyMovieClip("snow", 0);
function line(mc){
with (mc) {
clear()
lineStyle(10, random(0xeeeeee)+0x111111);
moveTo(0, 0);
lineTo(1, 0);
_visible = 0;
}}
line(snow)
i = 0;
onEnterFrame = function () {
line(snow)
Snow = snow.duplicateMovieClip("snow"+i, 1+i);
with (Snow) {
_x = random(550);
_y = random(400);
}
Snow.onEnterFrame = function() {
this._xscale = this._yscale -=5;
this._x += (_xmouse-this._x)/5;
this._y += (_ymouse-this._y)/5;
this._alpha-=5
if (this.hitTest(_xmouse, _ymouse, true)) {
this.removeMovieClip();
}
};
i++;
}