Skip to main content
Inspiring
March 29, 2008
Answered

Keypress Control for Timeline

  • March 29, 2008
  • 2 replies
  • 691 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? Need it be in Actionscript 3 or could it be with 2?
This topic has been closed for replies.
Correct answer JLgraphicFX
Thanks so much!

2 replies

kglad
Community Expert
Community Expert
March 31, 2008
flash has no native methods to detect alternative (to a kb/mouse) input. that's not to say it can't be done, but if it works just a well for you to use the arrow key, stay with that.

you could place stop() functions on each keyframe where you want the playhead to stop. your key listener could listen for the right arrow key andif detected execute a play().
Inspiring
March 31, 2008
That's exactly what I would like to do but, being a newbie, I don't know how to encode it. I am using CS3 but publishing to AS2. Would the codes be the same/similar?
kglad
Community Expert
Community Expert
March 30, 2008
use a key listener to use keyboard control in your project. i don't know how you intend to have flash communicate with your remote.
Inspiring
March 31, 2008
Sorry, I'm a novice at AS. Can I use a listener and still use the same arrow right key throughout? Would I add the listener at frame 1 and then add a goto at each stop point to go to the next label with a right arrow key press? With respect to the remote, I presumed it would be in lieu of using a keyboard in that it would function as a remote way of a key press of a right arrow. But, I really don't know. Can't a remote be used?