Maths stays the same no matter what language you're using!
Check out the docs on Point again, there's some interesting functions for calculating distances, etc.
On your question, here's Keith Peter's approach (Copied and pasted from this book:
http://www.apress.com/9781590597910). Arrow is a Sprite in the FLA library - you'll have to draw it yourself:
ActionScript Code:
package {
import flash.display.Sprite;
import flash.events.Event;
public class RotateToMouse extends Sprite {
private var arrow:Arrow;
public function RotateToMouse() {
init();
}
private function init():void {
arrow = new Arrow();
addChild(arrow);
arrow.x = stage.stageWidth / 2;
arrow.y = stage.stageHeight / 2;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function onEnterFrame(event:Event):void {
var dx:Number = mouseX - arrow.x;
var dy:Number = mouseY - arrow.y;
var radians:Number = Math.atan2(dy, dx);
arrow.rotation = radians * 180 / Math.PI;
}
}
}
BTW, I love Keith Peter's book. It covers all the basics of dynamic 2D and 3D interactive animation and is project based so you get plenty of hands-on learning opportunities.