Copy link to clipboard
Copied
hi, my name is attilio, can I switch from one frame to another using keyboard commands? that is, rather than clicking on a button navigate via keyboard. Thank you
Copy link to clipboard
Copied
Use , and . - more promimently these are the < and > keys.
Copy link to clipboard
Copied
unfortunately in English I have difficulty expressing myself, I meant if there is an action script code that allows the reproduction of the presentation via the keyboard. for example by clicking on the space bar to animate an object or move to another scene). Thank you
Copy link to clipboard
Copied
yes. as3 or canvas/html5?
Copy link to clipboard
Copied
As3, thanks
Copy link to clipboard
Copied
stage.addEventListener(KeyboardEvent.KEY_DOWN, keydownF);
function keydownF(e:KeyboardEvent):void {
trace("Key Pressed: " + String.fromCharCode(e.charCode));
}
Copy link to clipboard
Copied
Thanks
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
Hi.
There are also two examples in this link:
https://github.com/joao-cesar/adobe/tree/master/animate%20cc/as3/navigation
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
thank you very much
Copy link to clipboard
Copied
I have to apologize because that link is of a template that uses mouse click.
For key navigation, please check this reference:
https://github.com/joao-cesar/adobe/tree/master/animate%20cc/as3/keyboard_navigation
Regards,
JC
Copy link to clipboard
Copied
hello, yes this last one is what I need. It would be useful to have an example of clicking on the next frame using the ENTER key, and returning to the previous frame (with another key). A thousand thanks
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No, thanks
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more