Sorry, I'll explain better.
I have 9 sprites. I am tweening sprite1 to move back, then I want it to tween to its original position. With the rest of the buttons i using TweenMax.allTo and then setting the alpha to 0. Then onComplete it plays a video. When the video starts I have the timeline resetting to the start. Here's the basic code:
timeline = new TimelineMax({onComplete:playVideo});
timeline.append(TweenMax.to(e.currentTarget, .2, {scaleX:.7, scaleY:.7, ease:Circ.easeInOut}));
/*here i copied the above and just reversed it but wanted to find out if there was a more effecient way of reversing it with less coding*/
timeline.insertMultiple(TweenMax.allTo(btnArray, .8, (alpha:0, ease:Quad.easeInOut}));
timeline.addLabel("start",0);
}
public function playVideo():void {
rawVideo = videoData.videos.videoPath[vNum];
TweenMax.from(playerAS.player, 1, {alpha:0, ease:Expo.easeIn, onComplete:timelineReset});
playerAS.player.play(rawVideo, 0, false);
playerAS.player.addEventListener("complete", videoBack);
}
public function timelineReset():void {
timeline.gotoAndStop("start");
}
public function videoBack(evt:Object):void {
TweenMax.to(playerAS.player, .75, {alpha:0, ease:Quad.easeIn, onComplete:removeVideo});
}
I hope that makes sense.
Thanks for your patience!