Hi,
I am using Flash CS4 with AS3. I am creating a module that uses different key presses/input text type of events throughout the entire module. Everything is working fine, but I cannot get the "F10" key code to work in flash.
Here is my coding in the actions layer for the key press:
CODE
stop();
next_btn.visible = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandlerF);
function keyDownHandlerF(event:KeyboardEvent):void
{
if(event.keyCode == Keyboard.F10)
{
next_btn.visible = true;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandlerF);
gotoAndStop(currentFrame + 1);
}
else
{
gotoAndStop(currentFrame);
}
}
It's the exact same code I am using for my other key presses like the F4 key that work just fine. (It's the same code as listed above, but with a different named event listener and is calling the "Keyboard.F4".)
Any idea why the F10 won't work?? Or any solution as to what I can do??
Thanks!