# Looping through MovieClips

**URL:** <https://forum.kirupa.com/t/looping-through-movieclips/280045>\
**Category:** flash\
**Created:** [January 22, 2009, 2:39am UTC](https://forum.kirupa.com/t/looping-through-movieclips/280045 "2009-01-22T02:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [January 22, 2009, 2:39am UTC](https://forum.kirupa.com/t/looping-through-movieclips/280045/1 "2009-01-22T02:39:49Z")

</div>

I have a series of moviclips named “item0”,“item1”, etc. What is the best way to loop through the clips to assign some listeners? It would look something like this:

```auto

            for (var j:Number = 0; j < helpArr.length; j++) {
                item[j].buttonMode = true;
                item[j].useHandCursor = true;
                item[j].mouseChildren = false;
                item[j].addEventListener(MouseEvent.MOUSE_OVER,mouseOverItem);
            }

```
