1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Deconstructing the Paint Application X: Color Palettes

By

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.

©2014 About.com. All rights reserved.