I never wanna do this again, and you probably don't either, so here are some constants to make using ascii values of character codes more legible...
- e. <code> // Constants (to make logic more readible) var KEY_EXCLAMATION:Number = 33; var KEY_DOUBLE_QUOTE:Number = 34; var KEY_POUND:Number = 35; var KEY_DOLLAR:Number = 36; var KEY_PERCENTAGE:Number = 37; var KEY_AND:Number = 38; var KEY_SINGLE_QUOTE:Number = 39; var KEY_LEFT_PAREN:Number = 40; var KEY_RIGHT_PAREN:Number = 41; var KEY_STAR:Number = 42; var KEY_PLUS:Number = 43; var KEY_COMMA:Number = 44; var KEY_MINUS:Number = 45; var KEY_PERIOD:Number = 46; var KEY_SLASH:Number = 47; var KEY_0:Number = 48; var KEY_1:Number = 49; var KEY_2:Number = 50; var KEY_3:Number = 51; var KEY_4:Number = 52; var KEY_5:Number = 53; var KEY_6:Number = 54; var KEY_7:Number = 55; var KEY_8:Number = 56; var KEY_9:Number = 57; var KEY_COLON:Number = 58; var KEY_SEMI_COLON:Number = 59; var KEY_LESS_THAN:Number = 60; var KEY_EQUAL:Number = 61; var KEY_GREATER_THAN:Number = 62; var KEY_QUESTION_MARK:Number = 63; var KEY_AT_SYMBOL:Number = 64; var KEY_A:Number = 65; var KEY_a:Number = 97; var KEY_B:Number = 66; var KEY_b:Number = 98; var KEY_C:Number = 67; var KEY_c:Number = 99; var KEY_D:Number = 68; var KEY_d:Number = 100; var KEY_E:Number = 69; var KEY_e:Number = 101; var KEY_F:Number = 70; var KEY_f:Number = 102; var KEY_G:Number = 71; var KEY_g:Number = 103; var KEY_H:Number = 72; var KEY_h:Number = 104; var KEY_I:Number = 73; var KEY_i:Number = 105; var KEY_J:Number = 74; var KEY_j:Number = 106; var KEY_K:Number = 75; var KEY_k:Number = 107; var KEY_L:Number = 76; var KEY_l:Number = 108; var KEY_M:Number = 77; var KEY_m:Number = 109; var KEY_N:Number = 78; var KEY_n:Number = 110; var KEY_O:Number = 79; var KEY_o:Number = 111; var KEY_P:Number = 80; var KEY_p:Number = 112; var KEY_Q:Number = 81; var KEY_q:Number = 113; var KEY_R:Number = 82; var KEY_r:Number = 114; var KEY_S:Number = 83; var KEY_s:Number = 115; var KEY_T:Number = 84; var KEY_t:Number = 116; var KEY_U:Number = 85; var KEY_u:Number = 117; var KEY_V:Number = 86; var KEY_v:Number = 118; var KEY_W:Number = 87; var KEY_w:Number = 119; var KEY_X:Number = 88; var KEY_x:Number = 120; var KEY_Y:Number = 89; var KEY_y:Number = 121; var KEY_Z:Number = 90; var KEY_z:Number = 122; var KEY_LEFT_BRACKET:Number = 91; var KEY_BACKSLASH:Number = 92; var KEY_RIGHT_BRACKET:Number = 93; var KEY_CARRET:Number = 94; var KEY_UNDERSCORE:Number = 95; var KEY_APOS:Number = 96; </code> _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com