1. Home
  2. Computing & Technology
  3. Animation

Deconstructing the Paint Application X: Color Palettes

By Adrien-Luc Sanders, About.com

2 of 7

The first thing to do is to set up the basic color palette. This is a series of colored squares converted into movie clips and arranged in a grid.

Each movie clip as an ActionScript assigned to it so that when it’s clicked, it assigns a string matching to the hexadecimal code for the color of the square to the variable hexcolor. For example, this is the script assigned to the white square on the basic palette:

on (release) {
_Root.base.hexcolor=”FFFFFF”;
}

This is one of three ways to assign a string value to hexcolor.

Explore Animation
About.com Special Features

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

Easy ways to connect two computers for networking purposes. 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.