Показать сообщение отдельно
Старый 14.06.2003, 08:28
nuran вне форума Посмотреть профиль Отправить личное сообщение для nuran Найти все сообщения от nuran
  № 3  
nuran

Регистрация: Apr 2003
Адрес: DC
Сообщений: 4,489
Thumbs up И ещё чуток исходников

------------------------------------------------------------------------------------

// SUN

// ################################################################
// -- © 2002 - 2003 Grigory Ryabov.
// -- http://www.flash.plux.ru
// -- SUN
// ################################################################
this.createEmptyMovieClip("mc", 1);
MovieClip.prototype.newCurve = function(x1, y1, x2, y2, x3, y3) {
var nx = 2*x2-0.5*(x1+x3);
var ny = 2*y2-0.5*(y1+y3);
this.curveTo(nx, ny, x3, y3);
};
MovieClip.prototype.drawCircle = function(c, wd, hg) {
var mas = new Array();
var angle = 360/c;
for (var i = 0; i<=c; i++) {
mas[i] = new Object();
mas[i].x = Math.cos(angle*(Math.PI/180)*i)*wd;
mas[i].y = Math.sin(angle*(Math.PI/180)*i)*hg;
}
this.moveTo(mas[0].x, mas[0].y);
for (var i = 0; i<c; i += 2) {
this.newCurve(mas[i].x, mas[i].y, mas[i+1].x, mas[i+1].y, mas[i+2].x, mas[i+2].y);
}
};
radius = 80;
matrix = {matrixType:"box", x:-radius, y:-radius, w:radius*2, h:radius*2, r:radius*Math.PI};
this["mc"].beginGradientFill("radial", [0xFFFF00, 0xFF0000, 0xFFFF00], [100, 100, 100], [0, 0xCC, 0xFF], matrix);
this["mc"].lineStyle(0, 0x000000, 100);
this["mc"].drawCircle(16, radius, radius);
this["mc"].endFill();
stop();
max = 12;
for (i=0; i<=max; i++) {
this["mc"].duplicateMovieClip("ko"+i, 1000-i);
}
this["mc"].removeMovieClip();
ko0._visible = 0;
ko1._visible = 0;
this.onEnterFrame = function() {
if (ct%2 != 1) {
count++;
bg0._x = ko0._x=posx += (Math.cos(count/6)*420-ko0._x)/2+stage.width/4;
bg0._y = ko0._y=posy += (Math.sin(count/6)*200-ko0._y)/2+stage.height/4;
for (i=max; i>0; i--) {
eval("ko"+i)._x = eval("ko"+(i-1))._x;
eval("ko"+i)._y = eval("ko"+(i-1))._y;
eval("ko"+i)._xscale = eval("ko"+(i-1))._xscale-(130-Math.cos(count/3)*30);
eval("ko"+i)._yscale = eval("ko"+(i-1))._yscale-(130-Math.cos(count/3)*30);
}
}
};
_root.onMouseDown = function() {
ct++;
};
stop();

------------------------------------------------------------------------------------

// WOOL

// ##################################################################
// WOOL EFFECT
// © 2002 - 2003 Grigory Ryabov. All Rights Reserved.
// http://www.flash.plux.ru
// ##################################################################
c._x = 95;
c._y = 55;
max = 10;
dist = 35;
rad = Math.PI/180;
createEmptyMovieClip("c", 300);
for (i=1; i<=(max*max); i++) {
c.duplicateMovieClip("c"+i, i);
this["c"+i]._x = this["c"+(i-1)]._x+dist;
this["c"+i]._y = this["c"+(i-1)]._y;
this["c"+i].lineStyle(2, 0x000000, 100);
this["c"+i].moveTo(0, 0);
this["c"+i].lineTo(35, 35);
this["c"+i].onEnterFrame = function() {
this.angle = Math.atan2(_ymouse-this._y, _xmouse-this._x)/rad;
this._rotation = this.angle+135;
};
if (i%max == 1) {
this["c"+i]._y += dist;
this["c"+i]._x = this["c"]._x;
}
}
c.removeMovieClip();
stop();

------------------------------------------------------------------------------------

// FLAME

// ##############################################################
// (c) 2003 Grigory Ryabov
// http://www.flash.plux.ru
// FLASH MX FLAME EFFECT
// ##############################################################
if (frst != 10) {
frst = 10;
this.createEmptyMovieClip("c_", 2);
this.createEmptyMovieClip("worm1", 3);
this.createEmptyMovieClip("worm2", 1);
max = 30;
for (i=0; i<=max; i++) {
duplicateMovieClip("c_", "c1_"+i, i+400);
duplicateMovieClip("c_", "c2_"+i, i+100);
}
this.onEnterFrame = function() {
count++;
c1_0._x = 250+Math.cos(count/2)*3;
c1_0._y = 250;
c2_0._x = 250+Math.cos(count/2)*3;
c2_0._y = 250;
this["worm"+1].clear();
this["worm"+1].moveTo(this["c"+1+"_"+max]._x, this["c"+1+"_"+max]._y);
this["worm"+2].clear();
this["worm"+2].moveTo(this["c"+2+"_"+max]._x, this["c"+2+"_"+max]._y);
for (i=max; i>0; i--) {
this["c1_"+i]._x = this["c1_"+(i-1)]._x;
this["c1_"+i]._y = this["c1_"+(i-1)]._y+Math.cos(count/10)*3-4;
this["c2_"+i]._x = this["c2_"+(i-1)]._x;
this["c2_"+i]._y = this["c2_"+(i-1)]._y+Math.cos(count/10)*3-4;
r = -(Math.abs(Math.sin(count/20))*i+1)*8;
g = -(Math.abs(Math.sin(count/20))*i+1)*8;
b = 0;
worm1.lineStyle((max-i)*1.5, r << 16 | g << 8 | b,40);
worm1.lineTo(this["c1_"+i]._x, this["c1_"+i]._y);
worm2.lineStyle((max-i)*2, 255 << 16 | 00 << 8 | 00, 50);
worm2.lineTo(this["c2_"+i]._x, this["c2_"+i]._y);
}
};
}

------------------------------------------------------------------------------------

ну и как Вам???

ещё хотите???

прошу ко мне в гости

http://www.flash.plux.ru

Григорий А. Рябов (nuran)
Россия г.Тюмень
__________________
flash/flex/unity