I have an arrow, and I want it to spin according to where the mouse is:
code:
onClipEvent (enterFrame) {
diry = _root.sign._y-_ymouse;
dirx = _root.sign._x-_xmouse;
angle = Math.atan2(diry, dirx);
degrees = angle/(Math.PI/180);
setProperty("_root.sign", _rotation, degrees);
}
This script doesn't exactly work . Does anybody know what is wrong with it?
Thanks!