Вот быстрый пример:

Код AS1/AS2:
var speed = 0;
_root.onEnterFrame = function() {
if (Key.isDown(Key.LEFT)) {
car._rotation-=3;
}
if (Key.isDown(Key.RIGHT)) {
car._rotation+=3;
}
if (Key.isDown(Key.UP)) {
speed++;
}
if (Key.isDown(Key.DOWN)) {
speed--;
}
speed *= 0.9;
if (speed > 5) {
speed = 5;
} else if (speed < -5) {
speed = -5;
}
car._x += Math.cos(car._rotation * Math.PI / 180) * speed;
car._y += Math.sin(car._rotation * Math.PI / 180) * speed;
};