//------------------
通过键盘监听在实现元件名roundt的对象进行上下左右移动
//-------------------
AS 代码
- onClipEvent(keyDown){
- if (Key.isDown(Key.LEFT)){
- _root.roundt._x-=10;
- }else if (Key.isDown(Key.RIGHT)){
- _root.roundt._x+=10;
- }else if (Key.isDown(Key.UP)){
- _root.roundt._y-=10;
- }else if (Key.isDown(Key.DOWN)){
- _root.roundt._y+=10;
- }
- }