I create multiple MC’s with the following code:
function addCharacter() {
var newCharacter:characterBob = new characterBob();
this.addChild(newCharacter);
newCharacter.x=1000 - (50*counter);
newCharacter.y=50;
counter = counter + 1
}
Now i’d like to remove a bunch of them from the stage. Is there a way i can do this in AS3?
Thanks in advance for any advice.
You can try something like:
Perhaps a better option would be to put each “characterBob” created into an array. Then loop through the array and remove each object.