# For loop help

**URL:** <https://forum.kirupa.com/t/for-loop-help/266319>\
**Category:** Uncategorized\
**Created:** [July 18, 2008, 10:34am UTC](https://forum.kirupa.com/t/for-loop-help/266319 "2008-07-18T10:34:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [July 18, 2008, 10:34am UTC](https://forum.kirupa.com/t/for-loop-help/266319/1 "2008-07-18T10:34:32Z")

</div>

Hi all,

I’m having a bit of an issue with a for loop.

```auto

for(i = 0; i <= numMcs; i++)
	
	{
		container.img*._alpha = 0;
	}

```

Now, the issue I’m having is that with the ‘\*’. I thought by putting the ‘i’ in square brackets next to an instance would make it dynamic. But it’s not working. When I put the number directly next to the instance ‘img’ it works.

Perhaps I’m doing it wrong…

Any ideas?

Thanks.
