I'm having trouble getting flash to listen to keyboard events.
I know that it's not finding any errors in my code, and that it's not detecting when I press keys or release them. I can't see anything wrong with my code
here's the code I have for detecting key presses:
function pressKey(k:KeyboardEvent){
switch (k.keyCode){
case(37) : leftKeyPush = true; break;
case(39) : rightKeyPush = true;
}
}//end of pressKey
function releaseKey(k:KeyboardEvent){
switch(k.keyCode){
case(37) : leftKeyPush = false; break;
case(39) : rightKeyPush = false;
}
}//end of releaseKey
"World" is the instance name of an object on the stage.