2012年10月22日

小球八方向运动

摘要: import flash.events.KeyboardEvent;import flash.events.Event;stage.addEventListener(KeyboardEvent.KEY_DOWN, keydownHandler);stage.addEventListener(KeyboardEvent.KEY_UP, keyKey_upHandler);var thisX:int;var thisY:int;function keydownHandler(e:KeyboardEvent):void{if(e.keyCode == 87){ thisY = 1;}if(e.key 阅读全文

posted @ 2012-10-22 21:23 笔墨丹青 阅读(190) 评论(0) 推荐(0)

导航