Copy link to clipboard
Copied
I have 4 buttons over a fullscreen video and want to show when the buttons are being selected(button grows 20% it's size) using left/ right arrows and when pressing Enter on any button they will take you to Scene 2.
So far I can only do this with mouse and clicking, I would like to use only the keyboard. How can I do this? Also... when I create a Scene 2 the video in Scene 1 looks white
Thank you for reading!! I really appreciate your help
use a keyboard event listener:
this.addEventListener(KeyboardEvent.KEY_DOWN, downF);
function downF(e:KeyboardEvent):void{
trace(e.keyCode);
}
Copy link to clipboard
Copied
js or as3?
Copy link to clipboard
Copied
Sorry, as3
Copy link to clipboard
Copied
use a keyboard event listener:
this.addEventListener(KeyboardEvent.KEY_DOWN, downF);
function downF(e:KeyboardEvent):void{
trace(e.keyCode);
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now