Linking Custom MovieClips in the Library

Arguably one of the best features of Flash is the ability to create complex objects at design time that can be controlled by the powerful ActionScript 3 language at run time.  This tutorial will address some of the basics of taking advantage of this feature.  The “bubbles” shown below illustrate the idea. Each button is a randomly scaled instance of a MovieClip consisting of with a radial-gradient-filled circle and an independent timeline that moves the object up at a speed proportional to its size. 

The script for this MovieClip can be included either on the timeline or in an external .as file. In either case, the MovieClip is treated as a class attached to the bubble symbol.

Our first example, however, will be slightly simpler.

Back to Bridging the Gap               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.