Page 1 of 1

how to play a video when user hold a key

Posted: Tue Oct 15, 2013 3:57 am
by krishna
Hi All,
iam developing a gaming application in livecode, when user press and hold a button the video should be played, and if he releases the key the video should be paused or stopped, again if user hold the key the video should play, its my requirement.But iam unable to get code for it. please help me

Re: how to play a video when user hold a key

Posted: Tue Oct 15, 2013 6:44 pm
by Simon
Hi krishna,
Welcome to the forums :)

You should look up in the dictionary:
"keyDown" used with "play" to start the video
"keyUp" with "play pause" to pause the video

Both of those will allow you to specify a key to be used.

Simon