
23.10.2004, 00:52
|
|
Регистрация: Dec 2002
Адрес: Сочи
Сообщений: 2,819
|
this.createEmptyMovieClip("crug", 1);
with (this.crug) {
r = 50;
_x = _y=200;
i = 0;
}
pi2 = 2*Math.PI;
n = 60;
this.crug.onEnterFrame = function() {
with (this) {
clear;
beginFill(0xff0000, 100);
lineTo(r*Math.sin(pi2*i/n), r*Math.cos(pi2*i/n));
lineTo(r*Math.sin(pi2*(i+1)/n), r*Math.cos(pi2*(i+1)/n));
lineTo(0, 0);
endFill();
if (i++ == n) {
delete onEnterFrame;
}
}
};
|