WebAIM - Web Accessibility In Mind

E-mail List Archives

Flash MX 2004 Accessibility: on (keyPress) command


From: Aimee Ronn
Date: Feb 19, 2005 11:27PM

Dear WebAim-ers,

In Flash MX 2004, you can attach ActionScript to a Button symbol, so
thatwhen the user types a key, the Flash movie will execute the action. Here
is an example of some ActionScript:

on (Keypress "S") {

When "S" is pressed, the Flash movie will open up a new window showing
Knowbility's website.

The catch is that the user must first put the movie into focus by using use
the mouse to click anywhere on the movie.

Does anyone know of a way to have the Flash movie automatically put itself
into focus (without using JavaScript)?

- Aimee Ronn