  | |  | Key.isDown with String | Key.isDown with String 2004-03-09 - By Heiko Schweickhardt
Back hello,
i was about to write function which receives variables for the key-code (i.e. "Key.ENTER") and an action (function to be executed). the function would generate a specific listener for that key.
my problem is that Key.isDown seems only to accept the written "Key.ENTER" and not a variable(string) instead.
my_string="Key.ENTER"; if (Key.isDown(my_string)) {}
does not work.
any ideas?
- heiko
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106430 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |