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

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

The site www.flashandmath.com is maintained by Doug Ensley (doug@flashandmath.com) and Barbara Kaskosz (barbara@flashandmath.com).
It has been developed with partial funding from the National Science Foundation and the Mathematical Association of America.