June 04, 2023, 11:32:14 PM
Welcome, Guest. Please login or register
News: Join us for a FREE Webinar this Thursday at http://webinar.digitalsignage.com

MediaSignage support forum



Author Topic: Is SignageStudio support "KeyboardEvent" of script ?  (Read 3333 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