Tweening 6 Different Objects

Is there an easier way to set up 6 different similar tweens? I can’t seem to get a “for” loop to work - my lack of sleep isn’t helping either :slight_smile: Each of the nested clips is sitting on the main stage. The following code works, but it’s way too long:

import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var next1Alpha:Object = new Tween(panel1.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next1Alpha.onMotionFinished = function() {
this.yoyo();
};
var next2Alpha:Object = new Tween(panel2.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next2Alpha.onMotionFinished = function() {
this.yoyo();
};
var next3Alpha:Object = new Tween(panel3.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next3Alpha.onMotionFinished = function() {
this.yoyo();
};
var next4Alpha:Object = new Tween(panel4.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next4Alpha.onMotionFinished = function() {
this.yoyo();
};
var next5Alpha:Object = new Tween(panel5.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next5Alpha.onMotionFinished = function() {
this.yoyo();
};
var next6Alpha:Object = new Tween(panel6.next_mc, “_alpha”, Regular.easeOut, 100, 40, 0.75, true);
next6Alpha.onMotionFinished = function() {
this.yoyo();
};