chrscote
11-22-2005, 02:08 PM
I have a single movieclip on the main stage. This movieclip, though, has about 10-12 other movieclips embedded within it. If a user clicks one of the embedded movieclips, I want to perform one set of tasks, but if they click the main movieclip (outside of the embedded ones), then I want to perform another set of tasks.
For the inner movieclips, I need to get the name of the one that was clicked so that I can send a message to the main program. Is there a way to get the name of the inner movieclip that was clicked without having to use a long if-then-else statement? For example, can I do something along the lines of:
main_mc[movieclipClicked]._name
Chris
For the inner movieclips, I need to get the name of the one that was clicked so that I can send a message to the main program. Is there a way to get the name of the inner movieclip that was clicked without having to use a long if-then-else statement? For example, can I do something along the lines of:
main_mc[movieclipClicked]._name
Chris