Skip to main content
Inspiring
May 21, 2008
Answered

removeMovieClip for multiple clips, using attachMovie

  • May 21, 2008
  • 2 replies
  • 339 views
Hi,
I have multiple MC created using attachMovie. I cannot get them all removed , only one is removed. How do I get them all removed ?
My code is:

Thanks,
Paul

This topic has been closed for replies.
Correct answer robdillon
You gave each instance the same instance name. When you go to remove the clips, Flash will only find the first item with that name and remove it. Use unique names for each clip and then use those same names to remove them.

2 replies

maithAuthor
Inspiring
May 21, 2008
Hi Rob,
Thanks for that, I got it working now.

Paul
robdillon
robdillonCorrect answer
Participating Frequently
May 21, 2008
You gave each instance the same instance name. When you go to remove the clips, Flash will only find the first item with that name and remove it. Use unique names for each clip and then use those same names to remove them.