More on arrays...
I'd like to delete an item from an array that I've been populating with movie clips. I have a variable, mainMC, that stores the name of the movie clip that the user is currently interacting with. When the user clicks a button, I would like mainMC deleted from the array. Because the movie clip referenced by mainMC changes constantly, I can't refer to it by name.
I believe I need to search within the array for the contents of mainMC. However, I've been unsuccessful using indexOf. Has anyone worked through a similar situation and would be willing to shed some light on the steps involved?? Thanks!
I'd like to delete an item from an array that I've been populating with movie clips. I have a variable, mainMC, that stores the name of the movie clip that the user is currently interacting with. When the user clicks a button, I would like mainMC deleted from the array. Because the movie clip referenced by mainMC changes constantly, I can't refer to it by name.
I believe I need to search within the array for the contents of mainMC. However, I've been unsuccessful using indexOf. Has anyone worked through a similar situation and would be willing to shed some light on the steps involved?? Thanks!