# For loops

**URL:** <https://forum.kirupa.com/t/for-loops/179147>\
**Category:** Uncategorized\
**Created:** [February 17, 2006, 12:45am UTC](https://forum.kirupa.com/t/for-loops/179147 "2006-02-17T00:45:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongbox](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bongbox](https://forum.kirupa.com/u/bongbox)\
**Post date:** [February 17, 2006, 12:45am UTC](https://forum.kirupa.com/t/for-loops/179147/1 "2006-02-17T00:45:45Z")

</div>

```auto
rectMc.setMask(rectMask);
numOfRect = 8;
for (var i:Number = 1; i<numOfRect; i++) {
rectMc.rect*._y=-280;
}

```

i have a movieclip name rectMc and inside that movieclip theres 8 more movieclips name rect1 to rect8 … now i was just trying to position them in -280 … but dont seems to work whats wrong with that code … thanks .
