Skip to main content
Inspiring
March 29, 2008
Answered

Keypress Control for Timeline

  • March 29, 2008
  • 1 reply
  • 1195 views
I am creating a very simple presentation in CS3, which will be projected on-screen and will have a live speaker. I would like to be able to pause the SWF at various locations along the timeline so that the speaker my discuss issues on the screen, and then presume playing it. Since don't want this control visible (such as with a button) to the audience, I would like the control either with the press of a key, such as the arrow right key, or with a remote controller. How would I encode this both with the press of a key or with a remote controller?
This topic has been closed for replies.
Correct answer JLgraphicFX
I was just testing your script and the attached here works much better
Perfect! Thanks so much for all of your help.

1 reply

March 30, 2008
Look up onKeyDown or onKeyUp in the help files. You can experiment with the controller to see what character each of its buttons returns and act accordingly.
Inspiring
March 31, 2008
Thanks, I will. Do you know if I can use a remote control in lieu of a keyboard to make the key press?
March 31, 2008
I know for a fact that it is possible but I have only ever tried with one particular multimedia remote (and it worked). The attached code is from the Flash help file. Experiment with the remote in test mode to see what code each button returns with. On my remote, most (but not all) of the buttons would return a unique key code to Flash. A few of the buttons were trapped by the remote's system driver so were unusable for Flash. By assigning actions to all the useful buttons, I was able to create a good navigation system rather than just go forward and backward.