1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application X: Color Palettes

By , About.com Guide

4 of 7

The third way is to assign a color from the expandable palette, but before we do that let’s first define the conditions that make the palette visible.

My entire detailed palette is contained inside a single movie clip with smaller nested movie clips inside; the main clip’s instance is named ‘palette’. It starts off hidden; I want it to become visible when the active color swatch or the palette icon are clicked, then hide again when either is clicked again. So I assigned the following script to both:

on (release) {
_root.base.palette._visible=!_root.base.palette._visible;
}
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 X: Color Palettes

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

All rights reserved.