[thelist] Flash: Buttons, Movies, Instances, Confusion

Frank lists at frankmarion.com
Tue Dec 17 09:27:01 CST 2002

I'm all confused. I've created two buttons (one red, one blue), and two
movies. I then created 18 (9x2) separate instances of the movies, all
placed on a layer. I've given each movie instance a name (01 through
18--creative, aren't I?). I now want to make it so that I can change the
content of a dynamic text field based on the instance of that was clicked.

A button does nothing but trigger, it generates an event. A movie is needed
to append a function to said button, and the button must be enclosed in the
movie. The function can make the various object do whatever. So, how do I
make each instance discreet, or how do I run a separate function that will
determine which instance of one of two movies that contains one of two
buttons was clicked? Aarrghh.

How do I go about creating a list of 18 captions to be displayed in a text
field, each triggered by a separate instance of the same button/movie? Is
there a way of placing a case statement somewhere (say frame 1, layer 1,
root level) and getting it to react based on the instance name? This seems
to be the most logical choice to me, but then again, I don't really grok
Flash all that well.

I'm really pulling my hair out on this one.


More information about the thelist mailing list