1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application II: The Brush Tool & the Flash Drawing API

By , About.com Guide

6 of 9

Setting the Active Tool on Load

Phew; that was a tall drink of water. With all of the onEnterFrame actions defined (that is, everything that we did in the last two steps happens every time the frame plays, twelve times per second), we just need to define one very simple thing when the clip loads:
_root.isactive=”brush”;

All this does is define the tool that’s active when we first load the application, so that the user can immediately start painting without selecting a 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 II: The Brush Tool and the Flash Drawing API

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

All rights reserved.