|
Page 1 of 4 Searching the web for a good tutorial on how to create a coloring book came up short. This was a very quick and easy application to write. First thing's first: we must have an idea of what we're going to be using. Let's list the basic items of a coloring book. We need to: - Pick a color.
- Have an item to color
- Color the item!
Awesome. Seems simple enough right?! In case I haven't reiterated it enough, it's always good to have a plan! Now we can come up with a method of doing these 3 listed things to make our coloring book work.
Now to pick a color. I've seen many a coloring book made in flash where the creator makes 10 MovieClips, assigns certain code to each MovieClip, limiting the colors the user can choose. Why go through all that work? Listed in the component panel - pallette for some of you - there is a ColorPicker component. Yessss!! There's one already made! Step one is already accomplished! Wow that was quick...sort of. Now that we found a way to pick a color, we have to store that color which the user picked and color the item with that color. Wait we don't have any items to color? Here lies list item #2. If you aren't familiar with grouping and distributing to layers you will be after this short explanation. First we have to draw our picture to draw. Using any method you'd like, just draw it. As long as the colors are distinguishable then this will be quick and easy, even for the novice user (the drawing).  Awesome. For the sake of this article I won't go over HOW to draw this, but WHAT TO DO with this drawing.
|