Switching to a next frame with a specific button.
Hi, I was trying to figure out how to switch to a next frame by pressing a specific button on your keyboard, In this case I would like the button to be "3" and switch to the frame 41. I got it only to work with any key but couldn't make it work with "3" or any other specific key.
This is the code that only worked for me:
stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler_5);
function fl_KeyboardDownHandler_5(event:KeyboardEvent):void
{
gotoAndStop(30);
}
I'm new to this so if anyone is willing to help i'm grateful. Thanks!
