would you use a string to have AS recognise a whole word instead of the first letter of that word??
also once i have a MC appearing after a key has been pressed how do i allow the user to type in the input boxes without it disappearing again??
here is my code so far:
stop();
var oKeyListener:Object = new Object();
oKeyListener.onKeyDown = function():Void {
if (Key.getAscii() == login_txt.text.charCodeAt(0)) {
_root.login_screen._alpha = 100;
} else {
_root.login_screen._alpha = 0;
}
};
Key.addListener(oKeyListener);
that code is on the first frame.
but i also want the user to have the option of when they press any other key the window will disappear but if its open they have the option to type in it.
is this possible?
thanks peeps