The Game and Source Code

While experimenting with AS3 blend modes, we couldn't help creating a little 'catch chameleon fish game'. We hope you enjoy it. Click the screen shot below to open the game in a new window:

Download

  • Download all source files corresponding to this game: fishgame.zip

Blend Modes in AS3

You will find detail comments within the Timeline code in fishgame.fla file contained in the zip package linked above. The code is simple and easy to customize.

The basic idea is in using AS3 blend modes. In particular, chameleon fish are movie clips whose

clip.blendMode=BlendMode.INVERT;

The game has sound so you can use it as a tutorial about sound in AS3 Flash. The rest is just moving the fish around. Enjoy!

Back to Flash CS4 Tutorials              Back to Flash and Math Home

We welcome your comments, suggestions, and contributions. Click the Contact Us link below and email one of us.

Adobe®, Flash®, ActionScript®, Flex® are registered trademarks of Adobe Systems Incorporated.