Using the Key object: Creating keyboard controls in Flash 5
This movie was created in Macromedia Flash 5 using the ActionScript Key object. After clicking the start button, use the arrow keys on your keyboard to move the fighter plane. Press the Spacebar to launch a fireball.
To view this demo, you need the latest version of the Macromedia Flash Player. Download the free Macromedia Flash Player now.
In this tutorial, you'll examine how the movie was put together and learn how to use the Key object to create keyboard controls. This tutorial is intended for intermediate Flash users.
George Brown is a writer for Macromedia's Web Publishing Support Centers. Before focusing on technical writing, he designed books, taught software classes, and developed web sites.
21 May 2001
Flash, Key object, ActionScript, tutorial, keyboard, keypress, game