Skip to main content
Participating Frequently
August 26, 2023
Question

keyboard action projector .exe

  • August 26, 2023
  • 1 reply
  • 224 views

hello all, a question, but you can not navigate with the keyboard keys a presentation exported as a projector exe? Because from swf it works for me, from .exe it doesn't. A thousand thanks. attilio

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    August 26, 2023

    Hi.

     

    How are you setting the fullscreen?

     

    Anyway, here is a suggestion that should work:

    import flash.display.StageDisplayState;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    
    function onKeyDownHandler(e:KeyboardEvent):void
    {
    	switch(e.keyCode)
    	{
    		case Keyboard.LEFT:
    			prevFrame();
    			break;
    		case Keyboard.RIGHT:
    			nextFrame();
    			break;
    	}
    }
    
    stop();
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);

     

    Regards,

    JC

    attilapaAuthor
    Participating Frequently
    August 26, 2023

    first of all thank you very much, for using full screen (I'm not very practical) fscommand("fullscreen", "true"); thousand thanks

    JoãoCésar17023019
    Community Expert
    Community Expert
    August 26, 2023

    You're welcome!