1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application XI: Gradient Tool Options

By , About.com Guide

4 of 5

At this point, really? You have all you need to make the gradient itself work. You have a place to input the color values, and another for the alpha and the angle. All of that passes to the script that creates the gradient, so even without these last two steps it would work. All these last two steps do is tie in the color swatches so that you can change their color to match the current active color from the main palette while reflecting that into the hex code displayed in the input text box for that gradient color...or change the color swatch to match the color input in the corresponding text box.

Each of the color swatches will need code similar to this:

on (press) {
_root.base.gc1=_root.base.hexcolor;
}

This takes the hexadecimal color value from the main color swatch and assigns it to the variable for the input text box controlling the color of the corresponding gradient color swatch.

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 XI: Gradient Tool Options

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

All rights reserved.