I have an object that moves to wherever the mouse is clicked, I need to be able to determine the angle at which it is moving like so
var dx:Number = mouseX- this.x;
var dy:Number = mouseY- this.y;
var angle:Number = Math.atan2(dy, dx);
var angle2:Number = (angle * 180 / Math.PI);
will trace a number between -179 and 180, I need it to trace between 0 and 359, how can I get rid of the negative numbers?