View Full Version : Using keyboard to advance to next scene (Flash)

04-08-2006, 06:02 PM
Hello everyone,

I'm curious about actionscripting that would give a user keyboard control in a Flash exe file. I'm creating a presentation where I want the user to be able to advance to the next scene by using the space bar or the forward arrow key... basically so they can control the movement of the piece. If I'm creating an .exe file to be shown full screen, and I want the user to be able to advance to the next scene on their cue, is there actionscripting that would allow them to do this?? I'm experienced in Flash but new on the road of actionscripting.

Any help would be appreciated.


04-09-2006, 12:38 PM
Welcome to AS[org] !

You can use the keyboard to input commands. If you open the helpfile in Flash, you can find info on the Key class in the actionscript dictionary, along with methods, examples and such. You can also search the forums. There have been many posts about keys and a lot have full examples, explanations and such. When you get stuck, you can just ask around here.

04-09-2006, 01:01 PM
basicially this....

on the frame of each slide put stop(); as the code, and then on a moviec;lip in each frame put...

onClipEvent(enterFrame) {if(Key.isDown(Key.SPACE)) {_root.play();}}

04-11-2006, 06:59 PM
that's is actually it:
onClipEvent(enterFrame) {
if(Key.isDown(Key.SPACE)) {