# Function not recognizing array objects

**URL:** <https://forum.kirupa.com/t/function-not-recognizing-array-objects/209279>\
**Category:** Uncategorized\
**Created:** [December 7, 2006, 1:46pm UTC](https://forum.kirupa.com/t/function-not-recognizing-array-objects/209279 "2006-12-07T13:46:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferran](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Ferran](https://forum.kirupa.com/u/Ferran)\
**Post date:** [December 7, 2006, 1:46pm UTC](https://forum.kirupa.com/t/function-not-recognizing-array-objects/209279/1 "2006-12-07T13:46:27Z")

</div>

Hi !!!

I have made an array with three mc’s I have on the stage. They run through a tween, but when the onMotionFinished function is called the array information is not parsed.

Why ?

```auto
import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var my_arr:Array = new Array();

my_arr.push({name:mc_1, x:050, y:100, duration: 20});
my_arr.push({name:mc_2, x:150, y:175, duration: 100});
my_arr.push({name:mc_3, x:250, y:225, duration: 40});

for (i=0; i<3; i++) 
{
     
	var tween_1:Object = new Tween(my_arr*.name, "_y", Elastic.easeOut, my_arr*.y, my_arr*.y+100, my_arr*.duration, false);
	
	tween_1.onMotionFinished = function():Void 
	{
		trace(my_arr*.name);
		var tween_2:Object = new Tween(my_arr*.name, "_y", Elastic.easeOut, my_arr*.y+100, my_arr*.y-100, 50, false);
		trace("2");
		}
}

```

Thanks  
Ferran
