This Flash movie (source code) contains exemplary movie clips.
Open each movie clip to examine how the function was accomplished.
Pay special attention to the ActionScript 3.0 usually in the first frame of the actions layer of the movie clip.
Copyright © 2007, 2008 Eric S. Rabkin
Last modified Friday, 14-Nov-2008 20:03:06 EST .