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.
- Flash CS3 file mouse_draw.fla
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.