Simple Actionscript Help - Keypress
Hello
I am VERY new to Flash, so please excuse me if this seems very simple but all I am trying to achieve is to press a keyboard button to jump to the next frame.I have a button symobl off the stage and i am putting my code into that.
I can get it to jump to the next frame using the following code:
on (keyPress "<Left>") {
gotoAndPlay(2);
}
but instead of the left key i want to press 'R' in order for it to jump to frame 2. I've tried using the code:
on (keyPress "r") {
gotoAndPlay(2);
}
but this does nothing. Can anyone tell me what the correct syntax to use is.
Thanks
