Skip to main content
Participant
October 16, 2006
Question

Control FLV Playback with Keyboard

  • October 16, 2006
  • 1 reply
  • 226 views
I'm new to Flash but I can't seem to find an easy way to bind the FLVPlayback components to key presses insead of the mouse.

eg I want to stop and start an flv by pressing a key on the keyboard.

Any help appreciated.
This topic has been closed for replies.

1 reply

derobinson
Participating Frequently
October 19, 2006
You need to write a listener for keys pressed which contains an IF/ELSE structure that then tells the FLV plyback component what to do. So...key pressed, listener fires, IF the "X" key is pressed, tell the FLV playback component to stop...

Here's the LiveDocs link for key listeners:

http://livedocs.macromedia.com/flash/8/main/00002295.html

Good luck!