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 ?
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