# Problem w/ Multiple Tweens

**URL:** <https://forum.kirupa.com/t/problem-w-multiple-tweens/257762>\
**Category:** flash\
**Created:** [April 16, 2008, 9:15pm UTC](https://forum.kirupa.com/t/problem-w-multiple-tweens/257762 "2008-04-16T21:15:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saenim](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@saenim](https://forum.kirupa.com/u/saenim)\
**Post date:** [April 16, 2008, 9:15pm UTC](https://forum.kirupa.com/t/problem-w-multiple-tweens/257762/1 "2008-04-16T21:15:40Z")

</div>

Hi, I’m trying to have four different movie clips (panel1, panel2, panel3 and panel4) move left and right across the stage and then have them stop after let’s say 5 secs. I’m trying to apply the tween class and ease them in. However, only one movieclip will work at a time with the code I have. Any suggestions? Thanks. (The code is applied on its own layer on the main stage)

var panelTween:Tween = new Tween(panel4, “\_x”, Regular.easeIn, 0, 729, 2, true);  
panelTween.onMotionFinished = function (){  
this.yoyo()  
}

var panelTween:Tween = new Tween(panel2, “\_x”, Regular.easeIn, 0, 729, 2, true);  
panelTween.onMotionFinished = function (){  
this.yoyo()  
}

var panelTween:Tween = new Tween(panel3, “\_x”, Regular.easeIn, 0, 729, 2, true);  
panelTween.onMotionFinished = function (){  
this.yoyo()  
}

var panelTween:Tween = new Tween(panel4, “\_x”, Regular.easeIn, 0, 729, 2, true);  
panelTween.onMotionFinished = function (){  
this.yoyo()  
}
