Skip to main content
Participant
November 14, 2010
Question

Outputting key commands with AS3? (mac)

  • November 14, 2010
  • 2 replies
  • 1088 views

Hi there!

I'm in the startup phase of a project and I need some help regarding building a program with Flash.

We are making a video booth for a local museum where the visitors can record their own "news live broadcast" on a green screen and have it mailed to themselves.

I have an idea of using a mac software called BoinxTV to do the live keying and graphics. This software can also run an applescript after recording to take care of the emailing part.

However, this program is too complicated to be user operated by visitors, so I need some sort of front-end for it for easy control. I'm thinking an easy touch screen interface. The problem is that the only way to control boinxtv is via Key commands. So I need a program that can output key commands.

Is this possible to do in a flash/air app? Anyone know of any example scripts that does something like this?

My programming skills are pretty limited, so it would be great if this could be solved in flash...

Thanks!

Anders Mildestveit

TV-Produsenten AS

This topic has been closed for replies.

2 replies

Lee_Burrows
Participating Frequently
November 15, 2010

AIR 2.0 has a Native Process API (ie you can run other executables from within AIR) that may help.

If you can control boinxtv via the command line (or whatever mac equivelent is) then it should work ok.

for a 101 on Native Process, see http://gotoandlearn.com/play.php?id=125 and http://gotoandlearn.com/play.php?id=126

Known Participant
November 15, 2010

I don't know how to help you with your project, but if you are looking for the script that knows which key has been pressed this can be helpful

function KeyPressed(evt:KeyboardEvent):void

{

    trace(evt.keyCode);

}

stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyPressed);