Frame 1
Mouse.hide();
var stageL = new Object();
stageL.onResize = function () {
face1.swirl._width = 6000;
face1.swirl._height = 6000;
flas._width = Stage.width;
flas._height = Stage.height;
face1._y = Stage.height / 2;
face1._x = Stage.width * 0.75;
};
Stage.addListener(stageL);
stop();
grabbed = false;
_root.placed = false;
Stage.showMenu = false;
var omusic = new Sound();
omusic.attachSound("music");
omusic.start(0, 999999);
Instance of Symbol 37 MovieClip "face1" in Frame 1
onClipEvent (load) {
this._y = Stage.height / 2;
this._y = this._y - (this._y % 8);
this._x = Stage.width * 0.75;
this._x = this._x - (this._x % 8);
}
onClipEvent (enterFrame) {
this._x = this._x - (this._x % 8);
this._y = this._y - (this._y % 8);
if (_root.grabbed) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
xdist = (this._x - _root.glasses._x) + 50;
ydist = this._y - _root.glasses._y;
radd = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (radd < 24) {
_root.placed = true;
_root.gotoAndStop(2);
}
}
Instance of Symbol 41 MovieClip "glasses" in Frame 1
onClipEvent (load) {
_root.omusic.setPan(((this._x / Stage.width) * 240) - 120);
_root.omusic.setVolume(0);
this._y = Stage.height / 2;
this._y = Math.round(this._y / 8) * 8;
this._x = Stage.width * 0.25;
this._x = Math.round(this._x / 8) * 8;
}
onClipEvent (enterFrame) {
if (_root.grabbed) {
this._x = (_root._xmouse - (_root._xmouse % 8)) + 40;
this._y = (_root._ymouse - (_root._ymouse % 8)) + 32;
}
xdist = (_root.face1._x - this._x) + 50;
ydist = _root.face1._y - this._y;
radd = Math.sqrt((xdist * xdist) + (ydist * ydist));
this._y = Math.round(this._y / 8) * 8;
this._x = Math.round(this._x / 8) * 8;
if (xdist > 0) {
if (xdist > 200) {
_root.omusic.setPan(-100);
} else {
_root.omusic.setPan((-xdist) / 2);
}
} else if (xdist < -200) {
_root.omusic.setPan(100);
} else {
_root.omusic.setPan((-xdist) / 2);
}
if (radd > 400) {
_root.omusic.setVolume(0);
} else {
_root.omusic.setVolume(25 - (radd / 16));
}
}
Instance of Symbol 48 MovieClip in Frame 1
onClipEvent (load) {
this._x = _root._xmouse % 8;
this._y = _root._ymouse % 8;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse - (_root._xmouse % 8);
this._y = _root._ymouse - (_root._ymouse % 8);
if (_root.placed) {
this.gotoAndStop(3);
} else if (_root.grabbed) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 2
_root.placed = true;
omusic.setVolume(100);
omusic.setPan(0);
stop();
Instance of Symbol 37 MovieClip "face1" in Frame 2
onClipEvent (load) {
this._y = Stage.height / 2;
this._x = Stage.width * 0.75;
this._x = this._x - (this._x % 8);
this._y = this._y - (this._y % 8);
}
onClipEvent (enterFrame) {
this._x = this._x - (this._x % 8);
this._y = this._y - (this._y % 8);
this.gotoAndStop(3);
}
Instance of Symbol 51 MovieClip "flas" in Frame 2
onClipEvent (load) {
this._x = 0;
this._y = 0;
this._width = Stage.width;
this._height = Stage.height;
}
Symbol 33 Button
on (release) {
getURL ("hightane.html");
}
Instance of Symbol 31 MovieClip in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
this.timer = 0;
}
onClipEvent (enterFrame) {
this.timer = this.timer + 0.1;
this._y = this.oy + (Math.sin(this.timer) * 24);
this._y = this._y - (this._y % 8);
this._x = this._x - (this._x % 8);
}
Symbol 37 MovieClip Frame 2
stop();
Instance of Symbol 7 MovieClip in Symbol 37 MovieClip Frame 2
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
}
onClipEvent (enterFrame) {
x = _root.glasses._x - _root.face1._x;
y = (_root.glasses._y - _root.face1._y) + 10;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
angle = 90 - deg;
angle = angle / 180;
angle = angle * Math.PI;
this._x = this.ox + (Math.sin(angle) * 24);
this._y = this.oy + (Math.cos(angle) * 24);
this._y = Math.round(this._y / 8) * 8;
this._x = (Math.round(this._x / 8) * 8) - 4;
}
Instance of Symbol 7 MovieClip in Symbol 37 MovieClip Frame 2
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
}
onClipEvent (enterFrame) {
x = _root.glasses._x - _root.face1._x;
y = (_root.glasses._y - _root.face1._y) + 10;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
angle = 90 - deg;
angle = angle / 180;
angle = angle * Math.PI;
this._x = this.ox + (Math.sin(angle) * 24);
this._y = this.oy + (Math.cos(angle) * 24);
this._y = Math.round(this._y / 8) * 8;
this._x = (Math.round(this._x / 8) * 8) - 4;
}
Instance of Symbol 28 MovieClip "swirl" in Symbol 37 MovieClip Frame 3
onClipEvent (load) {
this._height = 4000;
this._width = 4000;
this._x = this._x - (this._x % 8);
this._y = this._y - (this._y % 8);
}
onClipEvent (enterFrame) {
}
Instance of Symbol 34 MovieClip "bar" in Symbol 37 MovieClip Frame 3
onClipEvent (load) {
this._x = (Stage.width * 0.25) - _root.face1._x;
this._y = (Stage.height / 2) - _root.face1._y;
this._x = this._x - (this._x % 8);
this._y = this._y - (this._y % 8);
}
onClipEvent (enterFrame) {
this._x = (Stage.width * 0.25) - _root.face1._x;
this._y = (Stage.height / 2) - _root.face1._y;
this._x = this._x - ((this._x % 8) - 4);
this._y = this._y - (this._y % 8);
}
Symbol 40 Button
on (press) {
_root.grabbed = true;
}
on (release) {
_root.grabbed = false;
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 30
stop();