先看看效果
图层三第一帧代码
var a = -90; var m = 300; var n = 60; var s = 1; var scale = 0.2;
图层四第一帧代码
fscommand("allowscale", "false");
图层四第二帧代码
s1 = getProperty(_root, _xmouse); s2 = getProperty(_root, _ymouse); s3 = (300-s2)/400+1; s = ((s1-500)/100)*2; a = a-s; if (a<-360) { a = a+360; } for (i=0; i<=19; i++) { str = "p"+i; b = a+36*i; setProperty(str, _xscale, s3/2*Math.sin(Math.PI*b/180)*100*(1-(1+Math.sin(Math.PI*b/180))*scale)); x1 = s3*m*Math.cos(Math.PI*b/180); y1 = s3*n*Math.sin(Math.PI*b/180); setProperty(str, _x, x1+500); setProperty(str, _y, 300-y1); setProperty(str, _yscale, s3/2*100*(1-(1+Math.sin(Math.PI*b/180))*scale)); setProperty(str, _alpha, 80-Math.sin(Math.PI*b/180)*20); if ((Math.sin(Math.PI*b/180)>0 and i<10) or (Math.sin(Math.PI*b/180)<=0 and i>=10)) { _root[str]._visible = false; } else { _root[str]._visible = true; } }
图层四第三帧代码
gotoAndPlay(2);
上一篇:流光文字视频教程
下一篇:代码做荧火虫视频教程


|