Skip to main content
leeey6
Participant
April 12, 2017
Question

How do make a video play when keyboard button is pressed and stop playing when key is released on Adobe Animate?

  • April 12, 2017
  • 2 replies
  • 521 views

Forum and adobe noobie, so sorry if this isn't in the appropriate community.

But I'm working on a project where I'd like to make two different videos play and stop upon pressing a certain keyboard button.

Example: If you held down the letter "A" on your keyboard, a video would play and then stop playing when you release the key. And if you held down the letter "B" then another video would play and stop as you hold it down or release. Is this even possible? I assume it's a similar process of applying code for a character to walk or jump depending on which keyboard button the player presses, but I'm not sure how to apply this to an H.264 video instead of a character animation.

Sorry if I'm not being very clear, I'm not entirely sure how to explain but I'd love some answers from people more experienced than I am! Thanks in advance.

This topic has been closed for replies.

2 replies

Legend
April 13, 2017

I have to wonder why a class is assigning Flash projects without first teaching the students how to use Flash.

kglad
Community Expert
Community Expert
April 12, 2017

actionscript 3 or canvas?

leeey6
leeey6Author
Participant
April 12, 2017

I wasn't sure which one to use, but i suppose canvas? I'm not actually planning to publish this anywhere as it's for an assignment

kglad
Community Expert
Community Expert
April 12, 2017

what's the assignment asking for?  unless it specifies canvas, use as3.  it's much more powerful.