1.新建一MC,画一个类似这样的“光”的效果图,很简单的
2。在第一帧上面输入AS:
_quality="LOW" function go(){
nowy = attachMovie("mc","m"+a,10+a) nowy._x=200 nowy._y=150 nowy._alpha=30 nowy._rotation=random(360) nowy._xscale=nowy._yscale=40+random(100) nowy.onEnterFrame = function(){ this._rotation+=Math.sin(this.z+=.3)*4 this._xscale=this._yscale+=Math.sin(this.o+=.2)*10 this.col=new Color(this); this.col.setRGB(127*Math.sin(this.r+=.8)+128<<16|127*Math.sin(this.g+=.2)+128<<8|127*Math.sin(this.b+=.1)+128);
} a++ if (a>30) clearInterval(id) }
var id = setInterval(go,250)
3:CTRL+回车,完了,很简单吧
|