代码:
var Width = Stage.width;
var Height = Stage.height;
var pen = _root.createEmptyMovieClip("pen_mc", 2);
var ib = 0;
var End = 90;
this.onEnterFrame = function() {
if (ibfor (j=0; jr = Math.PI/45*ib*(1-Math.sin(Math.PI/45*j))*18;
x = r*Math.cos(Math.PI/45*j)*Math.sin(Math.PI/45*ib) Width/2;
y = -r*Math.sin(Math.PI/45*j) Height/4;
drawDot(pen, int(x), int(y), 0x00FF00);
//drawCircle(pen, int(x), int(y), 2, 0x000000, 0x00FF00, 0);
}
ib ;
} else {
delete this.onEnterFrame;
}
};
/*ÒòΪֱ½ÓforǶÌ×Ñ»?FLASHÌ«³ÔÁ¦ÁË¡£¡£ËùÒÔ¸ÄÓÃonEnterFrameÁË...
for (i=0; i<90; i ) {
for (j=0; j<90; j ) {
r = Math.PI/45*i*(1-Math.sin(Math.PI/45*j))*18;
x = r*Math.cos(Math.PI/45*j)*Math.sin(Math.PI/45*i) AppletWidth/2;
y = -r*Math.sin(Math.PI/45*j) AppletHeight/4;
drawDot(pen, int(x), int(y), 0x00FF00);
//drawCircle(pen, int(x), int(y), 2, 0x000000, 0x00FF00, 0);
}
}
*/
function drawDot(pen, x, y, DColor) {
pen.moveTo(x-0.5, y);
pen.lineStyle(2, DColor, 100);
pen.lineTo(x 0.5, y);
}
var Height = Stage.height;
var pen = _root.createEmptyMovieClip("pen_mc", 2);
var ib = 0;
var End = 90;
this.onEnterFrame = function() {
if (ib
x = r*Math.cos(Math.PI/45*j)*Math.sin(Math.PI/45*ib) Width/2;
y = -r*Math.sin(Math.PI/45*j) Height/4;
drawDot(pen, int(x), int(y), 0x00FF00);
//drawCircle(pen, int(x), int(y), 2, 0x000000, 0x00FF00, 0);
}
ib ;
} else {
delete this.onEnterFrame;
}
};
/*ÒòΪֱ½ÓforǶÌ×Ñ»?FLASHÌ«³ÔÁ¦ÁË¡£¡£ËùÒÔ¸ÄÓÃonEnterFrameÁË...
for (i=0; i<90; i ) {
for (j=0; j<90; j ) {
r = Math.PI/45*i*(1-Math.sin(Math.PI/45*j))*18;
x = r*Math.cos(Math.PI/45*j)*Math.sin(Math.PI/45*i) AppletWidth/2;
y = -r*Math.sin(Math.PI/45*j) AppletHeight/4;
drawDot(pen, int(x), int(y), 0x00FF00);
//drawCircle(pen, int(x), int(y), 2, 0x000000, 0x00FF00, 0);
}
}
*/
function drawDot(pen, x, y, DColor) {
pen.moveTo(x-0.5, y);
pen.lineStyle(2, DColor, 100);
pen.lineTo(x 0.5, y);
}
效果如下:
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




