WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Flash MX 2004 Accessibility: on (keyPress) command

for

Number of posts in this thread: 1 (In chronological order)

From: Aimee Ronn
Date: Sat, Feb 19 2005 11:27PM
Subject: Flash MX 2004 Accessibility: on (keyPress) command
No previous message | No next message

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") {
getURL("http://www.knowbility.org","_self");
}

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)?

Thanks!
- Aimee Ronn