Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 3.0 (http://www.flasher.ru/forum/forumdisplay.php?f=83)
-   -   Где находятся константы кодов клавиш? (http://www.flasher.ru/forum/showthread.php?t=124380)

Smrad 28.04.2009 14:18

Где находятся константы кодов клавиш?
 
Никак не могу найти что-то в духе KeyCode.KEY_SPACE, KeyCode.KEY_A и т.п.? Или таких констант нет?

iNils 28.04.2009 14:20

flash.ui.Keyboard

Smrad 28.04.2009 14:31

Хмм... Почему-то, в flash.ui.Keyboard нет кодов алфавитно-цифровых клавишь.

iNils 28.04.2009 14:45

Загадка от адоба. Хотя для AIR есть.
Создайте свой класс, коды вот:
Код AS3:

public static const A:uint = 65;
public static const B:uint = 66;
public static const C:uint = 67;
public static const D:uint = 68;
public static const E:uint = 69;
public static const F:uint = 70;
public static const G:uint = 71;
public static const H:uint = 72;
public static const I:uint = 73;
public static const J:uint = 74;
public static const K:uint = 75;
public static const L:uint = 76;
public static const M:uint = 77;
public static const NUM_0:uint = 96;
public static const NUM_1:uint = 97;
public static const NUM_2:uint = 98;
public static const NUM_3:uint = 99;
public static const NUM_4:uint = 100;
public static const NUM_5:uint = 101;
public static const NUM_6:uint = 102;
public static const NUM_7:uint = 103;
public static const NUM_8:uint = 104;
public static const NUM_9:uint = 105;
public static const NUM_PLUS:uint = 107;
public static const N:uint = 78;
public static const O:uint = 79;
public static const P:uint = 80;
public static const Q:uint = 81;
public static const R:uint = 82;
public static const S:uint = 83;
public static const T:uint = 84;
public static const U:uint = 85;
public static const V:uint = 86;
public static const W:uint = 87;
public static const X:uint = 88;
public static const Y:uint = 89;
public static const Z:uint = 90;
public static const GRAVE:uint = 192;


BlooDHounD 28.04.2009 14:46

Smrad, нету. зато есть в аир :)

Smrad 28.04.2009 14:48

Спасибо.


Часовой пояс GMT +4, время: 08:18.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.