title: Moving on X Y axis based on rotation
body: <p>I'm trying to make the character move based on their angle of rotation, however it moves like it is strafing right.</p>
  
  <pre><code>import flash.events.KeyboardEvent;
  import flash.events.MouseEvent;
  
  lilman.rotation = 0
  var personRotation:Number = lilman.rotation * (Math.PI / 180)
  
  stage.addEventListener(KeyboardEvent.KEY_DOWN, function(e:KeyboardEvent)
  {
      if(e.keyCode==65)
      {
          lilman.rotation -= 5
      }
      else if(e.keyCode==68)
      {
          lilman.rotation += 5
      }
  })
  
  stage.addEventListener(MouseEvent.MOUSE_DOWN, function()
  {
      personRotation = lilman.rotation * (Math.PI / 180)
  
      lilman.x += Math.cos(personRotation)*5
      lilman.y += Math.sin(personRotation)*5
  
      trace(Math.cos(personRotation) +", "+ Math.sin(personRotation) +", "+ personRotation +", "+ lilman.rotation)
  })
  </code></pre>