Frame 1
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;
Stage.showMenu = false;
var omusic = new Sound(_root.music);
Instance of Symbol 13 MovieClip "face1" in Frame 1
onClipEvent (load) {
this._y = Stage.height / 2;
this._x = Stage.width * 0.75;
}
onClipEvent (enterFrame) {
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 < 10) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 17 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._x = Stage.width * 0.25;
}
onClipEvent (enterFrame) {
xdist = (_root.face1._x - this._x) + 50;
ydist = _root.face1._y - this._y;
radd = Math.sqrt((xdist * xdist) + (ydist * ydist));
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));
}
}
Frame 2
omusic.setVolume(100);
omusic.setPan(0);
stop();
Instance of Symbol 13 MovieClip "face1" in Frame 2
onClipEvent (load) {
this._y = Stage.height / 2;
this._x = Stage.width * 0.75;
}
onClipEvent (enterFrame) {
this.gotoAndStop(3);
}
Instance of Symbol 21 MovieClip "flas" in Frame 2
onClipEvent (load) {
this._x = 0;
this._y = 0;
this._width = Stage.width;
this._height = Stage.height;
}
Symbol 10 Button
on (release) {
getURL ("microtane.html");
}
Symbol 13 MovieClip Frame 2
stop();
Instance of Symbol 4 MovieClip "eye1" in Symbol 13 MovieClip Frame 2
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;
}
this._rotation = 180 + deg;
}
Instance of Symbol 4 MovieClip "eye1" in Symbol 13 MovieClip Frame 2
onClipEvent (enterFrame) {
x = (_root.glasses._x - _root.face1._x) - 60;
y = (_root.glasses._y - _root.face1._y) + 7;
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;
}
this._rotation = 180 + deg;
}
Instance of Symbol 6 MovieClip "swirl" in Symbol 13 MovieClip Frame 3
onClipEvent (load) {
this._height = 4000;
this._width = 4000;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Instance of Symbol 11 MovieClip "bar" in Symbol 13 MovieClip Frame 3
onClipEvent (load) {
this._x = (Stage.width * 0.25) - _root.face1._x;
this._y = (Stage.height / 2) - _root.face1._y;
}
onClipEvent (enterFrame) {
this._x = (Stage.width * 0.25) - _root.face1._x;
this._y = (Stage.height / 2) - _root.face1._y;
}
Symbol 16 Button
on (press) {
startDrag (this);
_root.grabbed = true;
}
on (release) {
stopDrag();
_root.grabbed = false;
}
Symbol 21 MovieClip Frame 30
stop();