Hi Carl,
thanks for your reply. Here you can see what i mean: http://hd-mailserver.de/main.html
my problem is that i can´t figure out how to manage this in a better way. I wanna build in two button to play
this forward and reverse.
i modified my code a little, but i doesn´t work for me the way i want.
...
private function setObjects() {
....code for setting objects on stage
//startting anim
mainTimer.addEventListener(TimerEvent.TIMER, initAnim);
mainTimer.start();
}
private function initAnim(e:TimerEvent) {
mainTimer.delay = 6000;
outAnim(j);
neu = (j+2) % Math.floor(json.order_feedback.items.length / 2);
inAnim(neu);
j = neu;
}
function outAnim(a) {
myTimeline0 = new TimelineMax({
tweens:[new TweenMax(sh[a], 1.5, {y:-208}),
new TweenMax(sh[a+1], 1.5, {y:-104})], align:TweenAlign.START, onComplete:myFunction});
}
function inAnim(a) {
myTimeline1 = new TimelineMax({
tweens:[new TweenMax(sh[a], 1.5, {y:5}),
new TweenMax(sh[a+1], 1.5, {y:109})], align:TweenAlign.START, onComplete:myFunction});
}
private function myFunction():void { }
maybe this example is some more clear - and mybe you have an idea
many thanks in advance