Directional problem

hi im making a game in flash and when the guy walks he rotates to face that direction, except everytime he rotates to face that direction he moves completely out of line