Frame 1
Stage.scaleMode = "noScale";
Frame 218
stop();
p = new Array();
count = 0;
p[count] = {x:_xmouse, y:_ymouse, w:0, col:0};
count++;
rand = Math.random;
sin = Math.sin;
r = 255;
g = 127;
b = 0;
w = 0;
ri = 0.02;
gi = 0.015;
bi = 0.025;
this.onEnterFrame = function () {
vx = ((_xmouse - oldx) + (rand() * 2)) - 1;
vy = ((_ymouse - oldy) + (rand() * 2)) - 1;
oldx = _xmouse;
oldy = _ymouse;
p[count] = {x:_xmouse, y:_ymouse, vx:vx * 0.5, vy:vy * 0.5, w:(sin((w = w + 0.2)) * 5) + 5, col:((((sin((r = r + ri)) * 128) + 127) << 16) | (((sin((g = g + gi)) * 128) + 127) << 8)) | ((sin((b = b + bi)) * 128) + 127)};
count++;
clear();
moveTo(_xmouse, _ymouse);
for (var i in p) {
lineStyle(p[i].w, p[i].col);
p[i].x = p[i].x + p[i].vx;
p[i].y = p[i].y + p[i].vy;
if (p[i].y > 380) {
p[i].y = 380;
p[i].vy = p[i].vy * -0.5;
p[i].vx = p[i].vx * 0.95;
}
if (i) {
curveTo(p[i].x, p[i].y, (Number(p[i].x) + Number(p[i - 1].x)) / 2, (Number(p[i].y) + Number(p[i - 1].y)) / 2);
}
if (p.length > 50) {
p.splice(0, 1);
count--;
}
}
};
Symbol 2 MovieClip [node] Frame 1
this.onEnterFrame = function () {
_yscale = (_yscale-1);
_xscale = _yscale;
_alpha = (_alpha-1);
if ((_xscale < 0) || (_alpha < 0)) {
removeMovieClip(this);
}
};
c = new Color(this);
c.setRGB(_root.p[_root.p.length - 1].col);
Symbol 14 Button
on (press) {
ma = rand() * 120;
msc = (rand() * 150) + 50;
nx = _xmouse;
ny = _ymouse;
tellTarget ("mN.n1") {
n = attachMovie("node", ++nCount, nCount);
n._alpha = _root.ma / 2;
n._xscale = (n._yscale = _root.msc);
n._x = _root.nx;
n._y = _root.ny;
};
tellTarget ("mN.n2") {
n = attachMovie("node", ++nCount, nCount);
n._alpha = _root.ma;
n._xscale = (n._yscale = _root.msc);
n._x = _root.nx;
n._y = _root.ny;
};
}