Accessibility
 
Home > Products > Flash > Support > Using ActionScript
Flash Icon Macromedia Flash Support Center - Using ActionScript
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.

Get Macromedia Flash Player

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.

Download the Windows source file keyobject.zip (16K)
Download the Macintosh source file keyobject.sea.hqx (28K)

About the ActionScript Key object
Deconstruct the first scene
Deconstruct the second scene
Examine the Actions movie clip
Going forward


George Brown

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

9901