Cursor follow script

Hey all,

i use this script to make a custom cursor and rotate it to the direction the _root._x,ymouse goes…
but i think it can be more improved can somebody have a look?

onClipEvent (enterFrame) {
Mouse.hide()
mouse_x = int(_root.mouse._x-this._x);
mouse_y = int(_root.mouse._y-this._y);
if (mouse_x>0 && mouse_y>0) {
quad = Number(4);
}
if (mouse_x<0 && mouse_y>0) {
quad = Number(1);
}
if (mouse_x<0 && mouse_y<0) {
quad = Number(2);
}
if (mouse_x>0 && mouse_y<0) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
//tg=Math.atan(abs_y,abs_x)
tg =abs_y/abs_x;
_root.maths = Math.atan(tg)*Number(180)/Math.PI;
if (quad == 1) { angle = number(90) - number(_root.maths) }
if (quad == 2) { angle = number(90) + number(_root.maths) }
if (quad == 3) { angle = number(270) - number(_root.maths) }
if (quad == 4) { angle = number(270) + number(_root.maths) }

setProperty (_this, _rotation, angle);
this._x+=(_root._xmouse-this._x)/2;
this._y+=(_root._ymouse-this._y)/2;
}

Thanks,
M