Flash / AS
Silverlight

WPF
ASP.net / PHP

Photoshop

Forums
Blog

About

 


FlashComponents
  Galleries
  Slideshows
  Menus
  Design & Effects
  Audio & Video
  User Interface
  Templates

 

 

 

 

 
Coloring Book
       by Zelwyn : 17 August
2004

This tutorial will teach you how to make a coloring book-style flash application, in which you can select colors, and click on certain sections of an image and change its color, or color it in, in other words.

This tutorial will contain enough information on how to create an image, split it into pieces, apply code to change its color, and create a cursor that will display what color is currently being used.

A nice pretty example of the effect you're trying to accomplish is shown below applied to an unintentionally strange looking dude.

[ weird looking color-able dude ]

How To Accomplish This
First you should go and download the source file for this tutorial. The ZIP contains the finished file as an FLA and an SWF, and the start file as a FLA.

Download ZIP
  1. Open the source file that you downloaded above.

  2. Create a new layer by clicking the "Insert Layer" button, or from Insert/Timeline/Layer.

  3. Select the fill that makes up the hair, and Convert it to a Symbol, using F8, Modify>Convert to Symbol, or by right-click/control-clicking on it, and selecting Convert to Symbol.

    [ Call it whatever you want, as long as it's a button ]

  4. Continue step iii until you've converted all four fills into buttons.

  5. Select the button that makes up the hair, and Convert it to a Symbol, using F8, Modify > Convert to Symbol, or by right-click/control-clicking on it, and selecting Convert to Symbol.

    [ Call it whatever you want, as long as it's a movie clip ]

  6. Continue step v until you've converted all four fills into movie clips.

  7. Select all the outlines, copy them with Edit > Copy, or Ctrl + C, select the top layer, and Paste in Place with Edit > Paste in Place or Ctrl + Shift + V.
     

Optional Step
You can group the outlines together if you want, with Ctrl+G, or Modify > Group.

The next section will talk about adding the first pieces of code to make it work, and will explain it as well. In this section you should have separated the outline and fills to separate layers, and converted each fill to a movie clip containing a button. If you missed something in this section, you should double back and read everything over again.

Onwards to the next page!


 

page 1 of 3


 


kirupa.com's fast and reliable hosting provided by Media Temple. flash components
The Text Animation Component for Flash CS3
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.
Check out our high quality vector-based design packs! Flash Effect Components

Flash Templates
CSS Templates
Dreamweaver Templates

flash menus, buttons and components
Digicrafts Components The best flash components ever!
Entheos Flash Website Templates Free Flash Page Flip
flash components Buy and sell FLAs at Ultrashock!
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com create flash slideshow as easy as 1,2,3
Purchase & Download Flash Components Learn how to advertise on kirupa.com