开发者

flash action script press a keyboard letter

hello can anyone help all i want to do is press the "a" on the keyboa开发者_开发百科rd and it goes to frame 2 i have the following working button but this only works for up down left right etc

    this.onKeyDown = function() {
if (Key.isDown(Key.SPACE)) {
desert._visible = false;
forest._visible = false;
tunnel._visible = true;
gotoAndPlay(2);
}}

how do i change the above so instead of SPACE i can press "a"


You can find all available keycodes right here. A great resource on this topic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜