1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application III: The Line Tool

By Adrien-Luc Sanders, About.com

1 of 4

Setting up the Line Tool Button

For this lesson we’re going to set up the Line Tool – a tool that lets users draw straight lines by clicking and dragging the mouse from the starting point to the ending point. For that we’re going to use the same commands from the last lesson on the Flash Drawing API, but use them slightly differently before adding a new one: clear().

The first step, of course, is to tell Flash how to know when the line tool is active by assigning an ActionScript to the button, the same as we did in the last lesson for the brush tool.

Index: Deconstructing the Paint Application III: The Line Tool

  1. Setting up the Line Tool Button
  2. Making the Line Tracker Movie Clip Move with the Mouse
  3. Drawing the Line on Mouse Release
  4. Adding in the CrossHair Cursor

1 of 4

Explore Animation

More from About.com

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Deconstructing the Paint Application III: The Line Tool

©2008 About.com, a part of The New York Times Company.

All rights reserved.