Rotate around its own axis

Hi Guys,

[SIZE=2][COLOR=#004080]I’m trying to make some kind of Compass and I want to know how I could make the needle spin around its own axis with one of the ends following the mouse pointer. how could I do that?
[/COLOR][/SIZE]
Thank you very much

Here’s an option:
http://www.actionscript.org/tutorials/advanced/Mouse_Angle_Detection_II/index.shtml

actually u can just use
Math.atan2(_xmouse,_ymouse)

that will give the angle in radian, to your mouse.

Thanks to all friends, that was really helpful, if you guys wanna see what did i do with that action visiti this link:
http://www.elcomercioperu.com.pe/elecciones2006/brujula.html
Thank you very much

Very nice man… Glad we could be a help.