# Scripted loops, questions from newbie

**URL:** <https://forum.kirupa.com/t/scripted-loops-questions-from-newbie/12974>\
**Category:** Uncategorized\
**Created:** [February 6, 2003, 10:41pm UTC](https://forum.kirupa.com/t/scripted-loops-questions-from-newbie/12974 "2003-02-06T22:41:45Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 13, 2003, 8:43am UTC](https://forum.kirupa.com/t/scripted-loops-questions-from-newbie/12974/21 "2003-02-13T08:43:21Z")

</div>

Yeah, you create another for loop, but since you already used i you can’t use that again, so we will move to the next letter in the alphabet… “j”

```php
for (j=0; j<maxClips; j++) {
	_root["mc"+j].removeMovieClip();
}

```

This creates another loop that goes to the maxClips, and removes them all.

[Previous page](https://forum.kirupa.com/t/scripted-loops-questions-from-newbie/12974.md?page=1)
