Angles

ok, so i get the math.sin and all the trig stuff. but i cant seem to figure out how to get the angle. the math.atan2(y, x) thing doesnt seem to do it. i think i might be applying it wrong or something so would anyone be able to give me an example of how to use that?

running low on time atm but i’ll post the fla for my little attempt at rotating something asap. anyway cheers.