Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Key Press to Play Video, in multi-screen project

New Here ,
Apr 20, 2014 Apr 20, 2014

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!

TOPICS
ActionScript
435
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2014 Apr 20, 2014
LATEST

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);

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines