|
| |
精品推荐 |
 |
|
| |
|
|
|
|
Flash:80行AS代码打造奇幻光影
|
日期:2007年7月23日 作者: 查看:[大字体
中字体 小字体]
|
onMouseDown = function () { for (var i in world._mc) { world._mc[i].removeMovieClip(); } var a = Math.random()*.2; t = (Math.random()-.5)*a; z = (Math.random()-.5)*a; para.htmlText = "<FONT SIZE=’12’ COLOR=’#999999’>z="+Math.round(z*10000)/10000+" t="+Math.round(t*10000)/10000+"</FONT>"; rad_speed = (Math.random()-.5)*3.8; line_bool = random(5); swirl_bool = random(3); rnd_xy_bool = random(4); var i = 0; for (k=0; k<total_nums; k++) { for (m=0; m<360; m += 5) { var line:MovieClip = world._mc.createEmptyMovieClip("line"+i, i); if (rnd_xy_bool) { line.ox = line.__x=line._x=k*Math.sin(m/180*Math.PI)*8+Math.random()*20; line.oy = line.__y=line._y=k*Math.cos(m/180*Math.PI)*6+Math.random()*20; } else { line.ox = line.__x=line._x=k*Math.sin(m/180*Math.PI)*8; line.oy = line.__y=line._y=k*Math.cos(m/180*Math.PI)*6; } line.lx = line._x*.3; line.ly = line._y*.3; if (random(3)) { (new Color(line)).setTransform({rb:i*512/k/m-256, gb:i*255/k/m, bb:random(512)-256}); } else { (new Color(line)).setTransform({rb:255, gb:255, bb:255}); } line.onEnterFrame = function() { if (swirl_bool) {
上一篇:用Flash的beginBitmapFill平铺背景
下一篇:用flash9制作的播放音乐时频谱真实显示
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|