问高手怎样做一个这样的效果

在某些flash游戏中,按上键人物向上走动,而且面朝上;按下键人物向下走动,而且面朝下;按左键人物向左走动,而且面朝左;按右键人物向右走动,而且面朝右;问这是怎么做的(关键是按哪个方向键就面朝哪个方向)
把人物换成箭头,道理是一样的
让图象翻转不行了

原来是向上的,你要让它向左时
if(Key.isDown(Key.LEFT)){
  this._x-=3
  this._rotation=270
}
向右时
if(Key.isDown(Key.LEFT)){
  this._x+=3
  this._rotation=90
}
向上时
if(Key.isDown(Key.LEFT)){
  this._y-=3
  this._rotation=0
}
向下时
if(Key.isDown(Key.LEFT)){
  this._y-=3
  this._rotation=180
}
设定原来是向上的,你要让它向左时
if(Key.isDown(Key.LEFT)){
  this._x-=3
  this._rotation=270
}            //顺时针转270度
向右时
if(Key.isDown(Key.LEFT)){
  this._x+=3
  this._rotation=90
}          //顺时针转90度
向上时
if(Key.isDown(Key.LEFT)){
  this._y-=3
  this._rotation=0
}            //顺时针转0度
向下时
if(Key.isDown(Key.LEFT)){
  this._y-=3
  this._rotation=180
}             //顺时针转180度
Sorry!!!!按键弄错了
设定原来是向上的,你要让它向左时
if(Key.isDown(Key.LEFT)){
  this._x-=3
  this._rotation=270
}            //顺时针转270度
向右时
if(Key.isDown(Key.RIGHT)){
  this._x+=3
  this._rotation=90
}          //顺时针转90度
向上时
if(Key.isDown(Key.UP)){
  this._y-=3
  this._rotation=0
}            //顺时针转0度
向下时
if(Key.isDown(Key.DOWN)){
  this._y-=3
  this._rotation=180
}             //顺时针转180度

另外当两个键一起按的时候不妨你自己想想看
没看明白```那些代码是什么东西啊
先画好人物各个方向面的图像,放进一个MC中,每帧放一幅

当你点击↑ ↓ → ←的时候就让那个MC跳转到相应的帧,同时修改人物的x、 y属性值
好久没来了,很多熟悉的名字都不见了?
http://www.angels-love.cn
自己买教材去
或者QQ332498317
(最近比较忙)

谢谢各位大虾

非常感谢hyieq