# How to Tween the index of an array?

**URL:** <https://forum.kirupa.com/t/how-to-tween-the-index-of-an-array/309913>\
**Category:** flash\
**Created:** [May 27, 2010, 4:24pm UTC](https://forum.kirupa.com/t/how-to-tween-the-index-of-an-array/309913 "2010-05-27T16:24:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![booglebop](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@booglebop](https://forum.kirupa.com/u/booglebop)\
**Post date:** [May 27, 2010, 4:24pm UTC](https://forum.kirupa.com/t/how-to-tween-the-index-of-an-array/309913/1 "2010-05-27T16:24:44Z")

</div>

Hello,

If i want to tween whatever \* is in a for loop, how can i go about doing this? Please see code below.

Thanks!

```php
function handleMouseEvent(targ:MovieClip):void {
	for(var i:int=0; i<total; i++) {
		if (questions_array*!=targ) {
//------------------------below is the line in question
			TweenMax.to(questions_array*, 1, {alpha:1});
		}
	}
}

```
