Navy_Spitfire
12-20-2010, 02:32 AM
I have a movieclip (ground) with several nested movieclips (g1, g2, g3, etc..). I'm trying to make it so that when the player touches the movieclip, depending on what nested MC they are on, it gets removed from the stage until everything is gone.
Now, rather then make 10 different functions for each nested movieclip to test if it's being touched individually (and take appropriate action), can I put the nested movieclips into an array and make one function that checks which nested mc is being touched and then removes it? If so, how would I begin to do so?
Now, rather then make 10 different functions for each nested movieclip to test if it's being touched individually (and take appropriate action), can I put the nested movieclips into an array and make one function that checks which nested mc is being touched and then removes it? If so, how would I begin to do so?