Accessibility

Flash sample application

Game sample: Maze

ActionScript can perform a hit test operation to determine whether two objects have collided on the Stage. You can either test for an object hitting another object or an object hitting a point on the Stage. This functionality is used often in games to evaluate collision of players and obstacles.

AlertThis content requires Flash

Download the free Flash Player now!

Get Adobe Flash Player

This sample demonstrates a maze game where the player icon navigates through the maze pattern. Press the up, down, left, and right arrow keys on the keyboard to navigate to the finish line.

User level: Intermediate

Requirements

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

Flash CS4 Professional

Sample files:

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