Skip to main content
Participant
April 20, 2014
Question

Key Press to Play Video, in multi-screen project

  • April 20, 2014
  • 1 reply
  • 449 views

I have a timeline with multiple videos in it, all loaded as external videos with playback controls as the audio is important (all are 55 seconds long and high quality audio is vital). First of all I want a specific key pressed to play one of the videos. I've been playing around with event handlers, key press event, but nothing has worked.

This is a multi screen project I'm working on so is there any way to have two seperate windows of video 1080x1920 (that would play on two seperate screens to interact with eachother) or would I have to create a stage twice the width. I need two video clips to play simultaniously once a key is pressed.

I am a real beginner to flash so I really have no idea whether this is possible.

I'm doing this on Flash CS6 on a Mac in IOS 10.9.2

Thanks!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 20, 2014

i'm not sure what you're trying to do with multiple screens but that should have no impact on using key listeners to control your timeline:

stage.addEventListener(KeyboardEvent.KEY_DOWN,f):

function f(e:KeyboardEvent):void{

trace(e.keyCode);

}