Es posible todo esto?
Es muy importante para mi, ayuda por favor:


Ahi va el codigo del coche:
onClipEvent (enterFrame) {
//right
if(Key.isDown(Key.RIGHT))
_rotation=_rotation+move;
//left
if(Key.isDown(Key.LEFT))
_rotation=_rotation-move;
//up
if(Key.isDown(Key.UP)){
if(move<5) move++;
}
else
if (move>0) move--;
//down
if(Key.isDown(Key.DOWN)){
if(move>-5)
move--;
}
else
if (move<0)
move++;
//enter
if(Key.isDown(Key.ENTER)){
_x=300;
_y=300;
_rotation=0;
move=0;
}
//_x & _y position
if(_rotation>180){
_y=_y+(move*Math.cos(Math.PI/180*_rotation));
_x=_x-(move*Math.sin(Math.PI/180*_rotation));
}
if(_rotation<180){
_y=_y-(move*Math.cos(Math.PI/180*_rotation));
_x=_x+(move*Math.sin(Math.PI/180*_rotation));
}
}