1. Home
  2. Computing & Technology
  3. Animation

Flash “Coloring Book” with setRGB

By Adrien-Luc Sanders, About.com

9 of 10

You can copy that entire block of code and then paste it into the Actions for each color block; all you’ll need to change is the _root.hue=0x000000 line to reflect the hexadecimal value of the current color. Since we used the variable in the setRGB command, the change will automatically reflect without having to edit any other code.

Once you’re done setting up the palette so that each color can change the selected fill box when clicked upon and its value is assigned to _root.hue as active, return to your artwork and right-click on one of the symbols for the fills that need to be painted in. Select Actions to open the Actions pane.

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. Flash “Coloring Book” with setRGB

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

All rights reserved.