Highlighted

Navigate buttons using left/right keyboard arrows and enter

New Here ,
Jun 04, 2019

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

https://ibb.co/C0TY2V0

Thank you for reading!! I really appreciate your help

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

use a keyboard event listener:

this.addEventListener(KeyboardEvent.KEY_DOWN, downF);

function downF(e:KeyboardEvent):void{

trace(e.keyCode);

}

TOPICS
Discussions

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Navigate buttons using left/right keyboard arrows and enter

New Here ,
Jun 04, 2019

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

https://ibb.co/C0TY2V0

Thank you for reading!! I really appreciate your help

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

use a keyboard event listener:

this.addEventListener(KeyboardEvent.KEY_DOWN, downF);

function downF(e:KeyboardEvent):void{

trace(e.keyCode);

}

TOPICS
Discussions

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 04, 2019 0
Adobe Community Professional ,
Jun 04, 2019

Copy link to clipboard

Copied

js or as3?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0
New Here ,
Jun 04, 2019

Copy link to clipboard

Copied

Sorry, as3

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0
Adobe Community Professional ,
Jun 04, 2019

Copy link to clipboard

Copied

use a keyboard event listener:

this.addEventListener(KeyboardEvent.KEY_DOWN, downF);

function downF(e:KeyboardEvent):void{

trace(e.keyCode);

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0