Frame 1
function rgb2hex(r, g, b) {
return(((r << 16) | (g << 8)) | b);
}
fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
Instance of Symbol 25 MovieClip "Engine" in Frame 1
onClipEvent (load) {
perspective = 250;
VerticeNum = 8;
}
Frame 11
stop();
Instance of Symbol 4 MovieClip in Symbol 5 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
color = random(9) + 238;
myColor.setRGB(_root.rgb2hex(color, color, color));
}
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
color = random(9) + 238;
myColor.setRGB(_root.rgb2hex(color, color, color));
}
Instance of Symbol 12 MovieClip in Symbol 14 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
color = random(9) + 238;
myColor.setRGB(_root.rgb2hex(color, color, color));
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
color = random(9) + 238;
myColor.setRGB(_root.rgb2hex(color, color, color));
}
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
color = random(9) + 238;
myColor.setRGB(_root.rgb2hex(color, color, color));
}
Symbol 24 MovieClip Frame 1
stop();
gotoAndStop(random(5) + 2);
Symbol 24 MovieClip Frame 2
stop();
this._rotation = random(360);
Symbol 24 MovieClip Frame 3
stop();
this._rotation = random(360);
Symbol 24 MovieClip Frame 4
stop();
this._rotation = random(360);
Symbol 24 MovieClip Frame 5
stop();
this._rotation = random(360);
Symbol 24 MovieClip Frame 6
stop();
this._rotation = random(360);
Symbol 25 MovieClip Frame 1
function drawPoints() {
c = 0;
while (c < verticeNum) {
Xpos = (this.rho[c] * Math.cos((this.theta[c] * Math.PI) / 180)) * Math.sin(((this.phi[c] + dphi) * Math.PI) / 180);
Zpos = (this.rho[c] * Math.sin((this.theta[c] * Math.PI) / 180)) * Math.sin(((this.phi[c] + dphi) * Math.PI) / 180);
Ypos = this.rho[c] * Math.cos(((this.phi[c] + dphi) * Math.PI) / 180);
Depth = 1 / (1 - (Zpos / perspective));
this.theta[c] = this.theta[c] - (_xmouse / 100);
this.phi[c] = this.phi[c] + (_ymouse / 600);
this["Point" + c]._x = (tmpx = (Xpos * Depth) + centerPoint._x);
this["Point" + c]._y = (tmpy = (Ypos * Depth) + centerPoint._y);
this["Point" + c]._xscale = (this["Point" + c]._yscale = Depth * 100);
this["Point" + c].frame._rotation = this.phi[c] * Math.cos(((this.theta[c] + 180) * Math.PI) / 180);
this["Point" + c].frame._xscale = 100 * Math.cos(((this.theta[c] + 90) * Math.PI) / 180);
this["Point" + c]._yscale = this["Point" + c]._yscale * Math.cos((this.phi[c] * Math.PI) / 180);
this["Point" + c].swapDepths(Depth * 500);
c++;
}
}
perspective = 100;
dphi = 90;
theta = new Array();
phi = new Array();
rho = new Array();
c = 0;
while (c < 25) {
theta[c] = (1 - Math.random()) * 360;
phi[c] = (1 - Math.random()) * 180;
rho[c] = 100;
c++;
}
verticeNum = theta.length;
c = 0;
while (c < verticeNum) {
duplicateMovieClip ("Point", "Point" + c, c);
eval ("Point" + c).number = c;
eval ("Point" + c).age = 0;
c++;
}
Point._visible = 0;
Symbol 25 MovieClip Frame 2
drawPoints();
Symbol 25 MovieClip Frame 3
gotoAndPlay (2);