Programming 11/12: ActionScript Assignment 2 (Block 2-4)

mole

You will create a simple Whac-A-Mole game using a combination of Flash and ActionScript elements.

[swf]http://mrkam.ca/wordpress/wp-content/uploads/Whac-A-Mole.swf, 550, 400[/swf]

You will be shown how to create an introduction frame with a start button that redirects the player to the actual game. In the latter, a mole will randomly pop up on the stage with a simple scoreboard. Part of the code will be shown but students will be expected to complete the rest of the game.

Learning Outcomes: You will learn how to create instances of buttons and movie clips, how to redirect to another keyframe using frame number and labels, and how to create MouseEvent and TimerEvent listeners.