Frame 1
stop();
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
perspective = 200;
VerticeNum = 41;
}
onClipEvent (load) {
function mouseTrack() {
Yangle = Yangle + ((_xmouse - Yangle) / 10);
Xangle = Xangle + ((_ymouse - Xangle) / 10);
}
function calc3d() {
c = 0;
Xang = Xangle * (Math.PI/180);
Yang = Yangle * (Math.PI/180);
sinX = Math.sin(Xang);
sinY = Math.sin(Yang);
cosX = Math.cos(Xang);
cosY = Math.cos(Yang);
while (c < VerticeNum) {
c++;
zpos = (this["z" + c] * cosY) - (this["x" + c] * sinY);
xpos = (this["z" + c] * sinY) + (this["x" + c] * cosY);
ypos = (this["y" + c] * cosX) - (zpos * sinX);
zpos = (this["y" + c] * sinX) + (zpos * cosX);
Depth = 1 / ((zpos / perspective) + 1);
this["Vertex" + c]._x = xpos * Depth;
this["Vertex" + c]._y = ypos * Depth;
this["Vertex" + c]._xscale = (this["Vertex" + c]._yscale = (Depth / 2) * 500);
this["Vertex" + c].gotoAndStop(int(zpos + 100));
if (38 < c) {
this["line" + c]._x = this["Vertex" + c]._x;
this["line" + c]._y = this["Vertex" + c]._y;
this["line" + c]._yscale = -this["Vertex" + c]._y;
this["line" + c]._xscale = -this["Vertex" + c]._x;
this["line" + c].swapDepths(Depth * 500);
}
this["Vertex" + c].swapDepths(Depth * 500);
}
}
perspective = 200;
VerticeNum = 41;
duplicateMovieClip ("line", "line39", 200);
duplicateMovieClip ("line", "line40", 201);
duplicateMovieClip ("line", "line41", 202);
line39.gotoAndStop(2);
while (count < 12) {
count++;
ang = ang + 30;
angle = ang * (Math.PI/180);
this["z" add count] = 0;
this["x" add count] = Math.sin(angle) * 100;
this["y" add count] = Math.cos(angle) * 100;
duplicateMovieClip ("Vertex", "Vertex" add count, count);
}
count = 0;
ang = 0;
while (count < 12) {
count++;
ang = ang + 30;
angle = ang * (Math.PI/180);
this["z" add (count + 12)] = 15;
this["x" add (count + 12)] = Math.sin(angle) * 100;
this["y" add (count + 12)] = Math.cos(angle) * 100;
duplicateMovieClip ("V", "Vertex" add (count + 12), count + 12);
}
count = 0;
ang = 0;
while (count < 12) {
count++;
ang = ang + 30;
angle = ang * (Math.PI/180);
this["z" add (count + 24)] = -15;
this["x" add (count + 24)] = Math.sin(angle) * 100;
this["y" add (count + 24)] = Math.cos(angle) * 100;
duplicateMovieClip ("V", "Vertex" add (count + 24), count + 24);
}
duplicateMovieClip ("V", "Vertex38", 40);
duplicateMovieClip ("V", "Vertex39", 41);
duplicateMovieClip ("V", "Vertex40", 42);
duplicateMovieClip ("V", "Vertex41", 43);
Vertex39._visible = 0;
VV._visible = 0;
V._visible = 0;
setProperty("Vertex", _visible , 0);
setProperty("Line", _visible , 0);
}
onClipEvent (enterFrame) {
D = new Date();
sec = D.getSeconds();
min = D.getMinutes();
hrs = D.getHours();
if (sec < 10) {
sec = "0" add sec;
}
if (min < 10) {
min = "0" add min;
}
if (hrs < 10) {
hrs = "0" add hrs;
}
angle1 = sec * 6;
x39 = Math.sin((angle1 * Math.PI) / 180) * 80;
y39 = Math.cos((angle1 * Math.PI) / 180) * 80;
angle2 = min * 6;
x40 = Math.sin((angle2 * Math.PI) / 180) * 65;
y40 = Math.cos((angle2 * Math.PI) / 180) * 65;
angle3 = hrs * 30;
x41 = Math.sin((angle3 * Math.PI) / 180) * 50;
y41 = Math.cos((angle3 * Math.PI) / 180) * 50;
mouseTrack();
calc3d();
}
Symbol 2 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 100
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 15 MovieClip Frame 1
stop();