Skip to main content
Participating Frequently
Aug 26, 2023 11:00 AM UTC
Question

keyboard action projector .exe

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    Aug 26, 2023 2:51 PM UTC

    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

    Translate
    attilapaAuthor
    Participating Frequently
    Aug 26, 2023 4:28 PM UTC

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

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Aug 26, 2023 6:50 PM UTC

    You're welcome!

    Translate