all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

Removing Duplicated Clips?


Re: Removing Duplicated Clips? CesareRocchi
3/31/2004 2:10:45 PM
flash actionscript:
AFAIK flash doesn't keep track of whethere a mc comes from a 'duplicate'
command.
A solution can be: store all the mcs created by means of
'duplicateMovieClip()' in a
data structure (e.g. array) and then you can remove all of them in a for loop
like:

var dup = new Array(); // here a list of the mcs duplicated

function removeAllDup (ar) {

for (var i= 0; i < dup.length; i++) {
dup[i].removeMovieClip();
}

}

remoreAllDup(dup);

HTH,

-c.
Removing Duplicated Clips? grob
3/31/2004 11:18:38 PM
Is there an easy way to remove all "duplicated" clips, i.e. those that have
been created using the
duplicateMovieClip() method from one or two master clips?

Until now I have tried to delete them one at a time.

Thanks
Geoff

AddThis Social Bookmark Button