Question
Removing Items From Stage Using removeChild
So, I have a file where I've added 27 movie clips to the
stage using a for loop to cycle through items in an XML document.
Here's the pertinent part of the code I'm using, it's AS3:
So, I end up with 27 instances of mini_mc, each named 0, 1, 2, 3, etc.
I'm trying to write code to remove them at a certain point in the movie but having problems. Here's what I'm using:
But I get this error:
ReferenceError: Error #1069: Property 0 not found on String and there is no default value.
I'm thinking I'm not referencing the "name" of the mcs properly?
Any help would be greatly appreciated! Thanks very much.
So, I end up with 27 instances of mini_mc, each named 0, 1, 2, 3, etc.
I'm trying to write code to remove them at a certain point in the movie but having problems. Here's what I'm using:
But I get this error:
ReferenceError: Error #1069: Property 0 not found on String and there is no default value.
I'm thinking I'm not referencing the "name" of the mcs properly?
Any help would be greatly appreciated! Thanks very much.
