Reputation: 1031
Anybody any ideas on how to remove children from stage using AS3 if I store the reference to the objects in an array and they exist in different locations i.e they are not all children of the same parent?
SomeArray.push(this);
Upvotes: 1
Views: 2283
Reputation: 35684
for each(var mc:MovieClip in SomeArray){
mc.parent.removeChild(mc);
}
Upvotes: 6
Reputation: 13151
Consider this :
Upvotes: 0