September 21, 2023, 01:41:26 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://twitter.digitalsignage.com

MediaSignage support forum



Author Topic: Is SignageStudio support "KeyboardEvent" of script ?  (Read 3420 times)

jj5552

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Is SignageStudio support "KeyboardEvent" of script ?
« on: March 08, 2017, 09:32:41 PM »
Hello all :
   I need to listen keyboard event to move to other Timelines. I use script like below but not work !

what's mistake in the code ?

import flash.utils.*;
import flash.events.KeyboardEvent;

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.start();

function keyPressed(event:KeyboardEvent):void
{
    if (event.keyCode == Keyboard.ENTER)     
       return true;
    return false;
}

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines