Actionscript help

I want to create a sidescroller game in which the characters arm rotates according to the mouse position(for aiming).

Has anyone got any ideas?

P.S: I am no stranger to flash, I’ve been using it for years.