Frame 1
ifFrameLoaded (31) {
gotoAndStop (31);
}
Frame 30
gotoAndPlay (1);
Frame 31
startX = 0;
startY = 0;
horz = 17;
vert = 17;
width = 50;
height = 50;
z = 1;
mcName = "square";
i = 0;
while (i < vert) {
p = 0;
while (p < horz) {
duplicateMovieClip (mcName, mcName + z, z);
mc = _root[mcName + z];
mc._x = startX + (p * width);
mc._y = startY + (i * height);
z++;
p++;
}
i++;
}
stop();
Instance of Symbol 12 MovieClip "square" in Frame 31
onClipEvent (load) {
range = 150;
max_scale = 1000;
ratio = max_scale / range;
}
onClipEvent (enterFrame) {
distx = _root.spring._x - this._x;
disty = _root.spring._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance < range) {
this._xscale = (this._yscale = ((range - distance) * ratio) + range);
} else {
this._xscale = (this._yscale = range);
}
}
Instance of Symbol 14 MovieClip in Frame 31
onClipEvent (load) {
perspective = 150;
VerticeNum = 20;
}
Instance of Symbol 15 MovieClip "spring" in Frame 31
onClipEvent (load) {
accel = 5;
bounce = 1.3;
}
onClipEvent (enterFrame) {
distX = _root._xmouse - _x;
distY = _root._ymouse - _y;
xInc = ((distX / accel) + xInc) / bounce;
yInc = ((distY / accel) + yInc) / bounce;
_x = (_x + xInc);
_y = (_y + yInc);
}
Symbol 4 MovieClip Frame 12
gotoAndPlay (1);
Symbol 10 MovieClip Frame 1
tellTarget ("o") {
gotoAndPlay(random(24));
};
Symbol 10 MovieClip Frame 4
if (random(9) == 6) {
tellTarget ("o") {
gotoAndPlay(random(24));
};
}
Symbol 10 MovieClip Frame 7
gotoAndPlay (2);
Symbol 13 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
count = 0;
while (count < VerticeNum) {
count++;
this["z" add count] = int(random(200)) - 100;
this["x" add count] = int(random(200)) - 100;
this["y" add count] = int(random(200)) - 100;
duplicateMovieClip ("Vertex", "Vertex" add count, count);
}
setProperty("Vertex", _visible , 0);
setProperty("Line", _visible , 0);
CenterRotationX = 0;
CenterRotationY = 0;
Symbol 14 MovieClip Frame 2
call("Mousetracking");
call("Calc3d");
Symbol 14 MovieClip Frame 3
prevFrame();
play();
Symbol 14 MovieClip Frame 4
DifferenceX = _xmouse - TrailerX;
DifferenceY = _ymouse - TrailerY;
TrailerX = TrailerX + (DifferenceX / 20);
TrailerY = TrailerY + (DifferenceY / 20);
if (TrailerX > 0) {
addX = int(TrailerX / 360) * -360;
} else {
addX = (int(TrailerX / 360) - 1) * -360;
}
if (TrailerY > 0) {
addY = int(TrailerY / 360) * -360;
} else {
addY = (int(TrailerY / 360) - 1) * -360;
}
Yangle = TrailerX + addX;
Xangle = TrailerY + addY;
Symbol 14 MovieClip Frame 5
c = 0;
while (c < VerticeNum) {
c++;
Xang = Xangle * 0.01745329;
Yang = Yangle * 0.01745329;
this["zpos" + c] = (this["z" + c] * math.cos(Yang)) - (this["x" + c] * math.sin(Yang));
this["xpos" + c] = (this["z" + c] * math.sin(Yang)) + (this["x" + c] * math.cos(Yang));
this["ypos" + c] = (this["y" + c] * math.cos(Xang)) - (this["zpos" + c] * math.sin(Xang));
this["zpos" + c] = (this["y" + c] * math.sin(Xang)) + (this["zpos" + c] * math.cos(Xang));
this["Depth" + c] = 1 / ((this["zpos" + c] / perspective) + 1);
this["Vertex" + c]._x = (this["xpos" + c] * this["Depth" + c]) + CenterRotationX;
this["Vertex" + c]._y = (this["ypos" + c] * this["Depth" + c]) + CenterRotationY;
this["Vertex" + c]._xscale = (this["Vertex" + c]._yscale = (this["Depth" + c] / 2) * 500);
this["Vertex" + c]._alpha = this["Depth" + c] * 100;
this["Vertex" + c].swapDepths(this["Depth" + c] * 500);
}
Symbol 20 Button
on (release) {
getURL ("http://www.sign69.com/medialounge/framer.html", "_self");
}