Frame 1
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 _local1 in p) {
lineStyle(p[_local1].w, p[_local1].col);
p[_local1].x = p[_local1].x + p[_local1].vx;
p[_local1].y = p[_local1].y + p[_local1].vy;
if (p[_local1].y > 380) {
p[_local1].y = 380;
p[_local1].vy = p[_local1].vy * -0.5;
p[_local1].vx = p[_local1].vx * 0.95;
}
if (_local1) {
curveTo(p[_local1].x, p[_local1].y, (Number(p[_local1].x) + Number(p[_local1 - 1].x)) / 2, (Number(p[_local1].y) + Number(p[_local1 - 1].y)) / 2);
}
if (p.length > 50) {
p.splice(0, 1);
count--;
}
}
};
Symbol 1 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 6 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;
};
}