PDA

View Full Version : Coloring book tutorial



razorangel
March 30th, 2008, 10:50 PM
I'm trying to use this tutorial to create an interactive coloring book for my girlfriend's class. But I can't figure out where to put certain bits of code. More like, my buttons & movies aren't showing up under "Symbol Definitions." I'm using CS3, but can't figure out what's wrong.

This is the tutorial:
http://www.kirupa.com/developer/mx2004/coloringbook.htm

Please help me out!

icio
March 31st, 2008, 12:13 PM
What bits are you struggling with? Give us something to work with.

Generally, some good advice with tutorials (in life) is to read the entire thing before you begin. I would recommend reading the entire tutorial and trying to identify any parts that you have left out.

I assume, despite your using Flash CS3, you are working in ActionScript 2.0 still, and not trying to convert it into AS3.0 as you go.

razorangel
March 31st, 2008, 01:29 PM
I actually think I may be using ActionScript 3. If I am, should I switch to 2.0? Will that let me use the tutorial, as it was written?

Basically, here's what has occurred. I started by drawing a circle, and then inside the circle, I made a shape, with no border, but a white fill. Then I split it up into 24 parts, like a pie chart. That automatically separated my white fill area into 24 separate entities. This simulated the tutorial's various "fill" regions. Then, as the tutorial said, I converted each fill area into a button, and then converted those buttons into movies. So basically, I have now 24 buttons, and 24 movies. That's where the similarity to the tutorial ended for me.

Well, I was able to figure out where to put the first bit of code, which tells the page to stay white, I'm assuming. But then it starts talking about putting code into the buttons. And that's where I'm lost. Because my buttons (each section of the pie) aren't showing up in my Actions pop-up. When I look at the properties of them, and should be able to choose "Parameters", it says, Parameters are applicable to components only.

But, in my library, it shows 24 buttons & 24 movies. Even though I select a button, or a movie, it still says that it's not valid for parameters.

Does that clear things up?

If you want to look at the mess I've made, here's somewhere I put it:

http://www.mediafire.com/?w0vdz1ugig5

Thanks again, in advance, for your help!

icio
March 31st, 2008, 03:03 PM
Change to ActionScript 2 in the Publish Settings (File ->) and then report back :thumb:

The tutorial was written in for Flash MX 2004 which did not support ActionScript 3 and there is a big different between 2 and 3.