For those Flash users who have moving on the brain…

26 October 2005 | 0

Aline says:

can it. Use the idea of a box instead

… so here’s the same explanation, but with boxes:

In Flash, you’ve got three types of Symbols: Movie Clips, Buttons and Graphics. Graphics are nothing more than 1 frame Movie Clips, so let’s conviently forget those. So now you’re left with Movie Clips and Buttons. Movie Clips are great, because you can store stuff in them. Buttons are great because you can put some fancy-pants text on them (in the biz, we call that “ActionScript”), and let people interact with your pages and animations. In order to make something into a Button or Movie Clip, we need to draw the object we want, then select it and do Modify > Convert to Symbol.

Here’s where things get tricky.

Upon doing this conversion, you just created a potential headache for yourself. You have now entered the territory of “nested timelines”. For newcomers to Flash, this always seems to trigger a host of incomprehensibilities about how Flash works:

“Where do I create my animations?”

“Where do I put my button’s ActionScript?”

“How do I change the color of my button?”

“Where am I?”

Repeat after me: It’s all boxes. When you do that Convert to Symbol command, you basically take that little drawing you did and box it up. It’s contained. It’s enclosed. It’s symbol-ized. You can prove this is true because when you click on your object, you get a blue rectangle around it called a “bounding box”. To edit your freshly made symbol, you double click on the object, and you are now in that symbol’s timeline. Yes, just as you can put smaller boxes in larger boxes, you can put timelines within other timelines (in this case the timeline of your Movie Clip or Button within the main timeline).

Here’s where the box analogy really pays off. When you want move stuff you put in a box, how do you move it? You don’t open up the box, take everything out one-by-one and move them. That defeats the whole purpose of boxing them up in the first place. No — you move your conveniently packaged materials through the real world via your box container. Just like a Movie Clip. When you want to do motion tweens on a Movie Clip, you move the symbol around, not the object within the symbol. Thus, you are building the animation on the timeline that holds the Movie Clip, not the timeline within the Movie Clip.

Think of it this way:

Real World > Box > stuff you put in the box (books, stuffed animals, whatever)

Main Timeline > Movie Clip Symbol > original drawing

When you want to read the books you put in the box, you open the box. When you want to edit the original drawing, you “open” the Movie Clip (by double clicking on the symbol).

Same deal with Buttons. When you want to label your boxes so you know at a glance what is in them, you put a label on the outside of the box. When you want to put ActionScript on a Button so you can let people interact with it, you put the script on the Button symbol, not within the Button. You should be able to see that blue bounding box when you are adding scripts to a button — you should never see the Up, Over, Down and Hit states when you’re trying to add ActionScript to control buttons.

Leave a Comment