Flash AS代码制作绚丽的光影变幻GIF动画效果(代码解析)

2019-10-07 22:30:15王冬梅

//跳转到指定的帧,以变换不同颜色的小球上.
mc.gotoAndStop(random(5)+1);
//通过onEnterFrame循环,来让粒子移动.
mc.onEnterFrame = function() {
this.tx += this.xtempo;
this.ty += this.ytempo;
this._x = this.x0+Math.sin(this.tx)*this.xd;
this._y = this.y0+Math.cos(this.ty)*this.yd;
};

}

  9,测试你的影片,你就会看到如下面的效果。

Flash8_Blendmode制作美丽光影变幻动画_天极设计在线整理

上一页12 下一页 阅读全文