Flash CS3 Components

August 30th, 2007 by skatehead

Having spent most of my time thus far developing Anthem with the Flash 9 Alpha, I hadn’t yet tried using Components (Because the Flash 9 Alpha didn’t support them), and I was hesitant to try them, because they seemed fairly complex for what I wanted to do with them.

I just did a bit of research, and it turns out they’re incredibly easy to set up, and incredibly useful for making levels.

It’s as simple as right clicking on a MovieClip in the library, going to “Component Definition…”, filling in the “Class” field, and adding some Parameters.

Components

Once that’s set up, you can drag that MovieClip from the library, and with it selected on the stage, go to the Parameters panel and adjust any of the Parameters you exposed, for that instance.

Components

For example, I can open up a level MovieClip, drag an enemy from the library on to the level, select that instance and adjust it’s health, move speed, reaction speed, damage multiplier, or whatever. And aside from making enemy instances unique, it’s very useful for setting up stuff like triggers, enemy spawners, and whatever else you can think of.

Might not seem like much, but this will make things a lot easier for both content creation, and programming. Wish I’d tried it earlier. (:

-Matt

Posted in Uncategorized |

4 Responses

  1. warsaw Says:

    I love you

  2. LoF Says:

    looks pretty easy from the pictures :)

  3. gel Says:

    OMG nerd. You’re excited about programming wtf mate.

    How’s the game coming? When will we see a working build? Is this going to be better than NewGrounds Rumble? AS IF.

  4. skatehead Says:

    <p>warsaw: Kthx.</p>
    <p>Lof: Sure does, thanks for noticing.</p>
    <p>gel: And you like drawing things again and again and again and again…<br />
    The game is coming along great, I’m currently working on a heap of generalised AI stuff that will make future enemies easier to code, but it’s slowing progress down a bit on the first enemy. Should have a working build fairly soon though.<br />
    I think Anthem could well be better than Newgrounds Rumble, but it’s going to take alot more work yet!</p>

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.