Frame 1
function cooldown() {
if (frame > minFrame) {
frame--;
}
}
function update() {
guy.gotoAndStop(frame);
}
function onEnterFrame() {
var _local2 = Math.atan2(guy._ymouse - op1y, guy._xmouse - op1x);
guy.pupil1._x = op1x + (Math.cos(_local2) * rad);
guy.pupil1._y = op1y + (Math.sin(_local2) * rad);
var _local1 = Math.atan2(guy._ymouse - op2y, guy._xmouse - op2x);
guy.pupil2._x = op2x + (Math.cos(_local1) * rad);
guy.pupil2._y = op2y + (Math.sin(_local1) * rad);
}
Stage.scaleMode = "noScale";
guy.stop();
var frame = 1;
var minFrame = 1;
guy.onPress = function () {
if (frame < this._totalframes) {
frame++;
}
cursor._rotation = 30;
};
guy.onRollOver = function () {
frame = 2;
minFrame = 2;
update();
Mouse.hide();
};
guy.onRollOut = (guy.onDragOut = function () {
minFrame = 1;
});
setInterval(cooldown, 300);
setInterval(update, 200);
onMouseMove = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
};
cursor.onEnterFrame = function () {
this._rotation = this._rotation / 1.5;
};
var op1x = guy.pupil1._x;
var op1y = guy.pupil1._y;
var op2x = guy.pupil2._x;
var op2y = guy.pupil2._y;
var rad = 15;
Mouse.hide();
var xml = new XML();
xml.load("http://garyc.me/track.php");