Okay so here’s the problem. I have multiple movieclips (5) on the stage and also a clear button. When clicking on the “clear” button, which will clear up the movieclips on the stage.
The code I’m using seems to be working, but it could only remove one movieclip.
How do I remove the others aswell at one click? How do I remove multiple duplicated movieclips?
Below is the current code I’m using:
for(i=1;i<14;i++) {
_root[“shell1”+i].removeMovieClip();
}
for(i=1;i<14;i++) {
_root[“shell2”+i].removeMovieClip();
}
for(i=1;i<14;i++) {
_root[“shell3”+i].removeMovieClip();
}
for(i=1;i<14;i++) {
_root[“shell4”+i].removeMovieClip();
}
for(i=1;i<14;i++) {
_root[“shell5”+i].removeMovieClip();
}
}
Many thanks!