有這樣的代碼:我如何循環timelinemax動畫在這種情況下
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.events.*;
var timeline:TimelineMax = new TimelineMax({yoyo:true,repeat:1});
var timeline2:TimelineMax = new TimelineMax({repeat:0,delay:12});
timeline.appendMultiple([
TweenLite.from(crno_mc, .2, {x:-450,ease:Cubic.easeInOut}),
TweenLite.from(plavo_mc, .2, {x:-450,ease:Cubic.easeInOut}),
TweenLite.from(network_mc, .6, {x:-450,ease:Cubic.easeInOut}),
TweenLite.from(computers_mc, .6, {x:-450,ease:Cubic.easeInOut}),
TweenLite.from(odzaci_mc, .6, {x:-450,ease:Cubic.easeInOut}),
TweenLite.from(adresa_mc, 1, {x:-350,ease:Cubic.easeInOut}),
TweenLite.to(adresa_mc, 1, {x:50,ease:Cubic.easeInOut}),
], 1, TweenAlign.SEQUENCE, .3);
timeline2.appendMultiple([
TweenLite.to(krediti_mc, .2, {x:10,ease:Cubic.easeInOut}),
TweenLite.to(dodva_mc, .3, {x:10,ease:Cubic.easeInOut}),
TweenLite.to(nula_mc, 1, {x:10,ease:Bounce.easeOut}),
TweenLite.to(tel_mc, .6, {x:10,ease:Cubic.easeInOut}),
TweenLite.to(comp_mc, 1, {x:110,ease:Cubic.easeInOut}),
], 1, TweenAlign.SEQUENCE, .5);
如何循環這2個充斥着?當第二個動畫完成時,它的停止。是否可以在無限循環中運行一個接一個時間軸?
TNX
注意jack的回答。他_wrote_ TweenLite et。所以他會知道 – 2012-08-02 21:51:48