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()
}