atan2(), takes two parameters (an X- and a Y-coordinate), and returns the angle formed by the right triangle measured in radians: Math.atan2(x, y)
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(Math.atan2(2,3)); } } }