Im trying to make it so that when you type in “quit” anywhere on the screen the game will play a new MC.
right now i have it working when you type “q” or “Q”
heres the code:
function keyTest() {
if ((Key.getAscii() == 81) || (Key.getAscii() == 113)) {
trace (“QUIT GAME”);
}
}
var eventListener:Object = new Object ();
eventListener.onKeyDown = keyTest;
Key.addListener (eventListener);
Any help would be appreciated.
Thank You