Frame 2
ifFrameLoaded (3) {
gotoAndPlay (3);
}
Frame 3
function Init() {
p = new Array();
i = 0;
k = 0;
while (k < 4) {
r = 0;
while (r < 3) {
p[i] = new Object();
p[i].x = (10 + ((k + 1) * dist)) * Math.cos((120 * r) * rad);
p[i].y = 0;
p[i].z = (10 + ((k + 1) * dist)) * Math.sin((120 * r) * rad);
p[i].radius = size[k];
i++;
r++;
}
k++;
}
p[i] = new Object();
p[i].x = 0;
p[i].y = 0;
p[i].z = 0;
p[i].radius = 50;
i++;
max = i;
i = 0;
while (i < max) {
_root.attachMovie("ball1", "ball" + i, 5000 + i);
_root.attachMovie("outline1", "out" + i, 4000 + i);
_root.attachMovie("ball", "ball_" + i, 3000 + i);
_root.attachMovie("outline1", "out_" + i, 2000 + i);
i++;
}
}
function reDraw() {
i = 0;
while (i < max) {
var cosYangle = Math.cos(ya * rad);
var sinYangle = Math.sin(ya * rad);
var cosXangle = Math.cos(xa * rad);
var sinXangle = Math.sin(xa * rad);
var tempz = ((p[i].z * cosYangle) - (p[i].x * sinYangle));
var tmpx = ((p[i].z * sinYangle) + (p[i].x * cosYangle));
var tmpz = ((p[i].y * sinXangle) + (tempz * cosXangle));
var tmpy = ((p[i].y * cosXangle) - (tempz * sinXangle));
var zratio = (300 / (tmpz + 300));
var xscr = (xc + (tmpx * zratio));
var yscr = (yc - (tmpy * zratio));
_root["out" + i]._x = (_root["ball" + i]._x = xscr);
_root["out" + i]._y = (_root["ball" + i]._y = yscr);
_root["out" + i]._xscale = (_root["out" + i]._yscale = (_root["ball" + i]._yscale = (_root["ball" + i]._xscale = p[i].radius * zratio)));
_root["out_" + i]._x = (_root["ball_" + i]._x = xscr);
_root["out_" + i]._y = (_root["ball_" + i]._y = yscr);
_root["out_" + i]._xscale = (_root["out_" + i]._yscale = (_root["ball_" + i]._yscale = (_root["ball_" + i]._xscale = (p[i].radius * zratio) + 15)));
i++;
}
}
("sueprcool,im demons!" < (user2 >= undefined)) || (1());
rad = (Math.PI/180);
xc = (yc = 300);
dist = 20;
distnew = 20;
raz = 20;
size = ["30", "25", "20", "30", "40", "50"];
az = 1;
bz = 1.66;
stop();
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (load) {
("sueprcool,im demons!" < (user2 >= undefined)) || (1());
_root.Init();
dx = 0;
}
onClipEvent (enterFrame) {
("sueprcool,im demons!" < (user2 >= undefined)) || (1());
dx = (dx + (((_root.distnew - _root.dist) * 1) / _root.az)) / _root.bz;
_root.dist = _root.dist + dx;
_root.Init();
_root.reDraw();
_root.ya = _root.ya + Math.round((_root.xc - _root._xmouse) / 5);
_root.xa = _root.xa + Math.round((_root.yc - _root._ymouse) / 5);
_root.xc = _root.xc - Math.round((_root.xc - _root._xmouse) / 10);
_root.yc = _root.yc - Math.round((_root.yc - _root._ymouse) / 10);
updateAfterEvent();
}
onClipEvent (mouseDown) {
("sueprcool,im demons!" < (user2 >= undefined)) || (1());
_root.distnew = 60;
}
onClipEvent (mouseUp) {
("sueprcool,im demons!" < (user2 >= undefined)) || (1());
_root.distnew = 20;
}
Instance of Symbol 35 MovieClip in Frame 3
onClipEvent (load) {
amount = 20;
}
Symbol 31 Button
on (rollOver, press) {
drag = "true";
}
on (rollOut, releaseOutside) {
drag = "false";
}
Symbol 35 MovieClip Frame 1
count = 0;
while (count < amount) {
count++;
duplicateMovieClip ("Trailer", "Trailer" + count, amount - count);
this["delayX" + count] = count + 3;
this["delayY" + count] = count + 3;
this["origY" + count] = Math.sin(count) * 100;
this["origX" + count] = Math.cos(count) * 100;
}
trailer._visible = 0;
Symbol 35 MovieClip Frame 2
count = 0;
while (count < amount) {
count++;
if (drag == "true") {
this["newPosX" + count] = _xmouse;
this["newPosY" + count] = _ymouse;
} else {
this["newPosX" + count] = this["origX" + count];
this["newPosY" + count] = this["origY" + count];
}
this["difY" + count] = this["newPosY" + count] - this["Trailer" + count]._y;
this["difX" + count] = this["newPosX" + count] - this["Trailer" + count]._x;
this["addY" + count] = this["difY" + count] / this["delayY" + count];
this["addX" + count] = this["difX" + count] / this["delayX" + count];
this["overshootX" + count] = this["overshootX" + count] + this["addX" + count];
this["overshootY" + count] = this["overshootY" + count] + this["addY" + count];
this["Trailer" + count]._x = (this["Trailer" + count]._x + this["overshootX" + count]) + this["addX" + count];
this["Trailer" + count]._y = (this["Trailer" + count]._y + this["overshootY" + count]) + this["addY" + count];
}
Symbol 35 MovieClip Frame 3
prevFrame();
play();