hey,
i got a lil prob i’m trying to access a MC only when a key combination is typed on the screen NOT in any input fields or anything just typed blankly on the screen. Basically i want to have when the user types invisibly on the screen the key combination of say “login” my MC called “login” will appear on the screen and the user will have the option to close the window or login…
i have a had a thought of trying it through this method:
onClipEvent (enterFrame) {
var oKeyListener:Object = new Object();
oKeyListener.onKeyDown = function():Void {
if (Key.getAscii() == new String("admin").charCodeAt(0)) {
_root.login_screen.gotoAndStop(1);
} else {
_root.login_screen._alpha = 0;
}
};
}
something along those lines i can’t get it to work for some reason if anyone wouldn’t mind having a quick look through my code or if they know what i’m doing wrong please give us a shout!!
Cheers peeps in advance for the help!