So I'm using some code for eye rotation that follows mouse
movement. This code only works when I output for Flash 5 or lower.
Does anyone understand the math enough to help me with coding in
Actionscript 2.0 for Flash 8?
Thanks in advance.
I have a graphic and instance name for eye and eye2.
// eye1 rotation
a = eye._y-_ymouse;
b = eye._x-_xmouse;
angleA = Math.atan2(a, b);
degrees = angleA/(Math.pi/180);
setProperty ("eye", _rotation, degrees);