
Macromedia MAX 2005 - Anaheim, CA What’s New In Flash 8
154
LAB: Viewing a Video Game with Flash Lite
Let’s try another application to see how the Flash Lite emulator handles the code. In this
example, we are going to a simple video game. The Blocks Game is a classic Tetris or
Minesweeper type of block game. The idea is to choose blocks that are surrounded and
connected to blocks of a similar color. Choosing these blocks removes them from the stage
and drops any blocks above them down to fill their empty spaces. The goal is to have as few
blocks remaining at the end as possible.
The source file is made up of two frames on the main timeline. One is a welcome screen; the
next is the game interface screen. The game interface screen starts by duplicating a
template block and randomly changing its properties until the board is full.
You will open up the .FLA file and test the game in the Flash Lite emulator.
To view the completed application in the emulator:
In Macromedia Flash Professional 8, open the file named blocks.fla located in the
/Unit_8/Blocks/ folder .
y Choose Control > Test Movie to start the application in the emulator.
To interact with the application, do the following:
y On the main screen, click the Play key on the emulator's keypad to Start the game.
y On the game screen, click the Right, Left, up and Down soft keys on the emulator to
change the block selection. Click the Center soft key to start eliminating blocks!
The emulator cannot close the application, so the Done button will not work.