Accessibility

Flash sample application

Interactivity sample: Keyboard controlled movement

Keyboard interactivity is used for games, accessibility, and navigation. General practice in ActionScript 3.0 involves "listening" to keyboard events from the Stage because the Stage always has focus while the movie is active.

AlertThis content requires Flash

Download the free Flash Player now!

Get Adobe Flash Player

This sample demonstrates an animation whose path is controlled by pressing the arrow keys on the keyboard. Press the up, down, left, or right arrows to see the change in the animation.

User level: Intermediate

Requirements

To view these samples, you need the following software and files:

Flash CS3 Professional

Sample files:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License