hey all,
i have the following code which works
_root.admin._alpha = 0;
var oKeyListener:Object = new Object();
oKeyListener.onKeyDown = function():Void {
if(Key.getAscii() == new String("login").charCodeAt(0)) {
trace("login was typed");
_root.admin._alpha = 100;
} else {
_root.admin._alpha = 0;
}
};
Key.addListener(oKeyListener);
but it only works when i press the “l” key instead i want it to work after i type my whole “login” word in then show the admin panel…any thoughts on how to get this working from here??
Cheers Peeps
EDIT: Also when i press another key my popup disappears how would you get that to stay there…thanks all in advance for any help!