Check this out

Copy and paste the below script, Nothing More, done by todd yard(I think):

eyeSize = 50;
hotspot = eyeSize*2;
eyeColor = [0x02DD02, 0x006600, 0x001A00];
irisFlecks = [0x557755, 0x003300];
smoothness = 50;
proximity = 120;
deg2Rad = Math.PI/180;

_root.createEmptyMovieClip("eyes", 0);
eyes._x = 270;
eyes._y = 200;

eyes.createEmptyMovieClip("eyeR_Outer", 0);
eyes.createEmptyMovieClip("eyeL_Outer", 1);
eyes.eyeR_Outer._x = eyes.eyeR_Outer.x = -proximity/2;
eyes.eyeL_Outer._x = eyes.eyeL_Outer.x = proximity/2;
eyes.eyeR_Outer.y = eyes.eyeL_Outer.y = eyes.eyeR_Outer.z = eyes.eyeL_Outer.z = 0;

eyes.eyeR_Outer.createEmptyMovieClip("eyeInner", 0);
eyes.eyeL_Outer.createEmptyMovieClip("eyeInner", 0);
rightEye = eyes.eyeR_Outer.eyeInner.createEmptyMovieClip("eye", 0);
leftEye = eyes.eyeL_Outer.eyeInner.createEmptyMovieClip("eye", 0);

rightEye.createEmptyMovieClip("backShadow", 0);
rightEye.createEmptyMovieClip("white", 1);
rightEye.createEmptyMovieClip("pupil", 2);
rightEye.createEmptyMovieClip("mask", 3);
rightEye.attachMovie("reflectionMap", "rm", 4);
rightEye.createEmptyMovieClip("eyeShadow", 5);
rightEye.createEmptyMovieClip("eyeHighlight", 6);

leftEye.createEmptyMovieClip("backShadow", 0);
leftEye.createEmptyMovieClip("white", 1);
leftEye.createEmptyMovieClip("pupil", 2);
leftEye.createEmptyMovieClip("mask", 3);
leftEye.attachMovie("reflectionMap", "rm", 4);
leftEye.createEmptyMovieClip("eyeShadow", 5);
leftEye.createEmptyMovieClip("eyeHighlight", 6);

leftEye.pupil.createEmptyMovieClip("innerPupil", 0);
rightEye.pupil.createEmptyMovieClip("innerPupil", 0);

//++++++++++++++++++++++++++++++++++++++++

pupil = {radius:eyeSize, eyecolors:[0x000000, eyeColor[0], eyeColor[0], eyeColor[1], eyeColor[2], 0xFFFFFF], alphas:[100,100,100,100,100,0], ratios:[80, 90, 100, 120, 145, 160], hotspot:hotspot};
eyeWhite = {radius:eyeSize, eyecolors:[0xFFFFFF, 0xCCCCCC], alphas:[100,100], ratios:[180, 255], hotspot:hotspot};
eyeHL = {radius:eyeSize, eyecolors:[0xFFFFFF, 0xFFFFFF], alphas:[100,0], ratios:[30,225], hotspot:eyeSize*.8};
eyeShadow = {radius:eyeSize, eyecolors:[0x000000, 0x000000], alphas:[0,30], ratios:[100,155], hotspot:eyeSize*3.6};
backShadow = {radius:eyeSize*5, eyecolors:[0x000000, 0x000000, 0x000000], alphas:[10,10,0], ratios:[50, 90, 140], hotspot:eyeSize*4};

//+++++++++++++++++++++++++++++++++++++++++

this.drawEyeAssets = function(mc, eye, center, smoothness) {
	var ang = 360/smoothness;
	var dx = eye.x - Math.sin((ang)*(deg2Rad))*eye.radius;
	var dy = eye.y - Math.cos((ang)*(deg2Rad))*eye.radius;
	mc.moveTo(dx, dy);
	mc.lineStyle(0, 0, 0);
	var matrix = { a:eye.hotspot, b:0, c:0, d:0, e:eye.hotspot, f:0, g:center.x, h:center.y, i:0 };
	mc.beginGradientFill("radial", eye.eyecolors, eye.alphas, eye.ratios, matrix);
	for (var i = 1; i <= smoothness; i++) {
		var rad = ang*i*deg2Rad;
		var dx = eye.x - Math.sin(rad)*eye.radius;
		var dy = eye.y - Math.cos(rad)*eye.radius;
		mc.lineTo(dx, dy);
	}
	mc.endFill();
}

this.drawIris = function(mc, lineColor) {
	mc.lineStyle(1, lineColor, 20);
	for (var i = 0; i <= 100; i++) {
		var ang = Math.random()*360;
		var rad = ang*i*deg2Rad;
		mc.moveTo(Math.cos(rad)*eyeSize/3, Math.sin(rad)*eyeSize/3);
		mc.lineTo(Math.cos(rad)*eyeSize/2, Math.sin(rad)*eyeSize/2);
	}
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

drawEyeAssets(rightEye.backShadow, backShadow, {x:30, y:20}, smoothness);
drawEyeAssets(leftEye.backShadow, backShadow, {x:30, y:20}, smoothness);
drawEyeAssets(rightEye.white, eyeWhite, {x:0, y:0}, smoothness);
drawEyeAssets(leftEye.white, eyeWhite, {x:0, y:0}, smoothness);
drawEyeAssets(rightEye.mask, eyeWhite, {x:0, y:0}, smoothness);
drawEyeAssets(leftEye.mask, eyeWhite, {x:0, y:0}, smoothness);
drawEyeAssets(rightEye.pupil.innerPupil, pupil, {x:0, y:0}, smoothness);
drawEyeAssets(leftEye.pupil.innerPupil, pupil, {x:0, y:0}, smoothness);


drawIris(rightEye.pupil.innerPupil, irisFlecks[0]);
drawIris(leftEye.pupil.innerPupil, irisFlecks[0]);
drawIris(rightEye.pupil.innerPupil, irisFlecks[1]);
drawIris(leftEye.pupil.innerPupil, irisFlecks[1]);


rightEye.pupil.setMask(rightEye.mask);
leftEye.pupil.setMask(leftEye.mask);

rightEye.rm._width = eyeSize*2;
leftEye.rm._width = eyeSize*2;
rightEye.rm._height = eyeSize*2;
leftEye.rm._height = eyeSize*2;
rightEye.rm._alpha = 20;
leftEye.rm._alpha = 20;

drawEyeAssets(rightEye.eyeShadow, eyeShadow, {x:-eyeSize/4, y:-eyeSize/4}, smoothness);
drawEyeAssets(leftEye.eyeShadow, eyeShadow, {x:-eyeSize/4, y:-eyeSize/4}, smoothness);
drawEyeAssets(rightEye.eyeHighlight, eyeHL, {x:-eyeSize/4, y:-eyeSize/4}, smoothness);
drawEyeAssets(leftEye.eyeHighlight, eyeHL, {x:-eyeSize/4, y:-eyeSize/4}, smoothness);

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stare = function() {
	var theta = Math.atan2(-this._y, -this._x) - (this._rotation*Math.PI/180);
	var hyp = Math.sqrt(this._x*this._x + this._y*this._y);
	var point = {};
	point.x = hyp*Math.cos(theta);
	point.y = hyp*Math.sin(theta);
	this.localToGlobal(point);
	hyp = Math.sqrt((point.x-_root._xmouse)*(point.x-_root._xmouse) + (point.y-_root._ymouse)*(point.y-_root._ymouse));
	theta = Math.atan2(_root._ymouse-point.y, _root._xmouse-point.x) - (this._parent._parent._rotation*Math.PI/180);
	hyp = hyp > eyeSize/2 ? hyp = eyeSize/2 : hyp;
	this._x = hyp*Math.cos(theta);
	this._y = hyp*Math.sin(theta);
	this._xscale = 100 * (eyeSize*3 - hyp)/(eyeSize*3);
	this._yscale = 100 * (eyeSize*6 - hyp)/(eyeSize*6);
	this._rotation = Math.atan2(this._y, this._x)*180/Math.PI;
	this.innerPupil._rotation = -this._rotation;
}
startMove = function() {
	finalDest = {x: _root._xmouse, y: _root._ymouse};
	var hyp = Math.sqrt((this._x-_root._xmouse)*(this._x-_root._xmouse) + (this._y-_root._ymouse)*(this._y-_root._ymouse));
	var theta = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x)*180/Math.PI;
	stretch(this.eyeR_Outer, theta, hyp);
	stretch(this.eyeL_Outer, theta, hyp);
	this.onEnterFrame = moveEye;
}
moveEye = function() {
	this._x -= (this._x - finalDest.x)/1.5;
	this._y -= (this._y - finalDest.y)/1.5;
	if (Math.abs(this._x - finalDest.x) < 25 && Math.abs(this._y - finalDest.y) < 25) {
		rightEye.onEnterFrame = wobble;
	}
	if (Math.abs(this._x - finalDest.x) < 1 && Math.abs(this._y - finalDest.y) < 1) {
		delete this.onEnterFrame;
	}
}
stretch = function(eyeOuter, theta, hyp) {
	eyeOuter.eyeInner._xscale = 100 + hyp/12;
	eyeOuter.eyeInner._yscale = 100 - hyp/20;
	eyeOuter._rotation = theta;
	eyeOuter.eyeInner.eye._rotation = -theta;
}
wobble = function() {
	rightEye._parent._parent._rotation = 0;
	leftEye._parent._parent._rotation = 0;
	rightEye._rotation = 0;
	leftEye._rotation = 0;
	rightEye._parent._xscale -= (rightEye._parent._xscale - 100)*1.5;
	leftEye._parent._xscale -= (leftEye._parent._xscale - 100)*1.5;
	rightEye._parent._yscale -= (rightEye._parent._yscale - 100)*1.5;
	leftEye._parent._yscale -= (leftEye._parent._yscale - 100)*1.5;
	if (Math.abs(rightEye._parent._xscale - 100) < 1) {
		delete this.onEnterFrame
	}
}
eyes.spin3D = function() {
	var distance = -this._xmouse/10;
	if (Math.abs(distance) > 45) {
		distance = distance > 1 ? 45 : -45;
	}
	distance *= Math.PI/180;
	var cos = Math.cos(distance);
	var sin = Math.sin(distance);
	var eyes = [this.eyeR_Outer, this.eyeL_Outer];
	for (var i = 0; i < 2; i++) {
		var x = cos * eyes*.x - sin * eyes*.z;
		var z = cos * eyes*.z + sin * eyes*.x;
		eyes*._x = x;
		eyes*._xscale = eyes*._yscale = z/5 + 100;
		if (eyes*._xscale > 100) {
			eyes*.eyeInner.eye.backShadow._x = Math.abs(eyes*._x - eyes*.x)*4;
			eyes*.eyeInner.eye.backShadow._y = -(eyes*._xscale - 100);
			eyes*.eyeInner.eye.backShadow._xscale = eyes*.eyeInner.eye.backShadow._yscale = 100;
		} else {
			eyes*.eyeInner.eye.backShadow._xscale = eyes*.eyeInner.eye.backShadow._yscale = eyes*._xscale;
			eyes*.eyeInner.eye.backShadow._x = 0;
			eyes*.eyeInner.eye.backShadow._y = 0;
		}
	}
	if (eyes[0]._xscale > eyes[1]._xscale) {
		eyes[0].swapDepths(1);
	} else {
		eyes[1].swapDepths(1);
	}
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

setInterval(eyes, "spin3D", 40);
rightEye.pupil.onEnterFrame = stare;
leftEye.pupil.onEnterFrame = stare;
eyes.onMouseDown = startMove;

cheers;

That is AWESOME!!!
3D and everything!

Hey h88, you desapear without a notice… what happen to ya? ppl start talking, ya know…:stuck_out_tongue:

Welcome back dude! :slight_smile:

MY GOD! ohh maan!
I wonder what part of the script creates the eyes!!!
oh man!