Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Movie organization question |
From: | Werner Sharp |
Date: | Thu, 08 Feb 2001 15:52:13 -0000 |
Hi all,
My background is in Director so I'm trying to see how to use Flash in a
similar manner. I have a game I'm developing with about 40 game
pieces. Each piece is a different graphic with different properties but
needs the same actionScript associated with it. In Director, I would have
40 sprites pointing to the 40 different graphics with the same behavior
attached but with different properties. If I change the one behavior, all
the game pieces get the new behavior.
So how would you do this in Flash?. I currently have 40 MCs (to contain
the properties) with 40 buttons (the graphic) inside of them. Each button
handles press and release and sends the event back to a function at the
root level. This function, using the context of the MC, does all the
work. Is this the best solution? Or can I put something else in the 40
MCs (like another MC) that only has one instance in the library. Then in
that MC, I can put the generic actionScript. I'm trying to avoid having 40
copies of the actionScript around while still keeping a nice
object-oriented framework in place.
Thanks for any information.
Werner Sharp
sharpwbellsouth [dot] net
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]