you are here: codestackercodes [RSS] → tag movieclip [RSS]

remove all movieclips

a simple sample

// 3 solutions

for (var i in holder) {
    if(typeof(holder[i])=="movieclip" && holder[i]._name.substr(0,4)=="foo_") {
           holder[i].removeMovieClip();
    }
}

for (var i=0;i<noOfclips;i++) {
    var clip=_root["mc"+i];
    clip.removeMovieClip();
}

for (var n in this) { 
    removeMovieClip(this[n]); 
}
Displaying 1 Code