开发者

flash action script press a keyboard letter

开发者 https://www.devze.com 2023-03-03 05:31 出处:网络
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

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

精彩评论

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