The Companion Site for the Book ActionScript 3.0 Game Programming University

About the Book
Book Source Files
Q&A Forum
Buy the Book
Book Table of Contents
Book Corrections
All Articles
Email Newsletter

Looking for examples of Flash games? Try the free Flash games at and the iPhone games at
Gary Rosenzweig from shows you how to make a movie clip fade away according to the distance to the cursor location. He uses a Base Class to assign this same script to two different movie clips.

Download QuickTime Movie.
Download the source file.