Hi, the full code is attached.
Basically, what im trying to achieve is - after this tween is complete
timeline.append(TweenMax.to(thumbLoader, 1.12, {bezier:[{x:10, y:361}, {x:(thumbWidth + 10) * xCounter, y:(thumbHeight + 10) * yCounter, alpha:1}], scaleY:0.5, scaleX:0.5, ease:Quad.easeOut}), -1);
run this
timeline.append(TweenMax.to(thumbLoader, 0.5, {bezier:[{x:10, y:361}, {x:(thumbWidth + 10) * xCounter, y:(thumbHeight + 10) * yCounter, alpha:1}], scaleY:1, scaleX:1, ease:Quad.easeOut}), 0.6);
or something similar.
Snippets of the function:
var timeline:TimelineMax = new TimelineMax();
private function callThumbs():void {
for (var i:Number = 0; i var thumbURL = images[i].@THUMB;
var thumbLoader = new Loader();
thumbLoader.load(new URLRequest(thumbURL));
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
thumbLoader.x = 300;
thumbLoader.y = 700;
thumbLoader.alpha = 0.5;
timeline.append(TweenMax.to(thumbLoader, 1.12, {bezier:[{x:10, y:361}, {x:(thumbWidth + 10) * xCounter, y:(thumbHeight + 10) * yCounter, alpha:1}], scaleY:0.5, scaleX:0.5, ease:Quad.easeOut}), -1);
// Im trying to make the tween below to start only when the tween above (code above) completes
timeline.append(TweenMax.to(thumbLoader, 0.5, {bezier:[{x:10, y:361}, {x:(thumbWidth + 10) * xCounter, y:(thumbHeight + 10) * yCounter, alpha:1}], scaleY:1, scaleX:1, ease:Quad.easeOut}), 0.6);
timeline.play();
if (xCounter+1 <= columns) {
xCounter++;
} else {
xCounter = 0;
yCounter++;
}
}
}
Apologies... Im still a noob at this.