by Adobe

Adobe logo

Created

18 July 2010

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

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