Jive Turkey
02-06-2009, 09:47 PM
Hello,
I would like to be able to control a movie by using buttons. For example, if I want to go forward or next, instead of pressing a button in the flash movie, I could press the 'Right Arrow' key on my keyboard to do the same thing. I want to give the user both options to use the buttons in the flash movie and to use their keyboard to navigate.
For example, what would I have to add to this code below to accomplish this?
forward.onPress = function() {
_root.current++;
loader.gotoAndPlay(1);
};
Any help will be greatly appreciated. Thanks!
I would like to be able to control a movie by using buttons. For example, if I want to go forward or next, instead of pressing a button in the flash movie, I could press the 'Right Arrow' key on my keyboard to do the same thing. I want to give the user both options to use the buttons in the flash movie and to use their keyboard to navigate.
For example, what would I have to add to this code below to accomplish this?
forward.onPress = function() {
_root.current++;
loader.gotoAndPlay(1);
};
Any help will be greatly appreciated. Thanks!