# For loop problem

**URL:** <https://forum.kirupa.com/t/for-loop-problem/224227>\
**Category:** Uncategorized\
**Created:** [April 30, 2007, 11:54am UTC](https://forum.kirupa.com/t/for-loop-problem/224227 "2007-04-30T11:54:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matm00](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/matm00/32/2487_2.png) [@matm00](https://forum.kirupa.com/u/matm00)\
**Post date:** [April 30, 2007, 11:54am UTC](https://forum.kirupa.com/t/for-loop-problem/224227/1 "2007-04-30T11:54:39Z")

</div>

I’m trying to do something that I thought would be as easy as pie, but I can’t figure out the correct syntax, I just keep getting errors.

Here’s my code:

```auto

for (var i=1; i <= 10 ;i++) {
    main_mc.bkg*_mc._alpha = 0;
}

```

It looks fine to me, but it obviously isn’t. It’s falling over on the middle line, specifically the ‘\*’ bit. I just want it to put the ‘i’ value in the middle of the movieclip reference (obviously because there are 10 movieclips and I don’t want to keep repeating myself). I’ve tried lots of variations on the line, but nothing has worked. I know there’s going to be a really easy solution to this, but I don’t really know where to start.
