Drawing with the Mouse Example

In the simple Flash movie displayed below, the user can draw with the mouse on a board. The user can choose the color and the thickness of the stroke. For choosing color, we use the new ActionScript 3 component, ColorPicker. The component was placed on the Stage at authoring time as well as the arrow buttons, the dynamic text field, and the Erase button.


Download the well-commented fla file for the swf displayed above.

On the next page of this tutorial, we show how to configure the ColorPicker component.

Back to Basic 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.