1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application III: The Line Tool

By , About.com Guide

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.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.