have a problem with a script that was running in cs4, but now in cs5 I get errors.
I am fading in objekts by timelines after framejumps
eg. frame 0
stop();
mybtnLeiste1.mybtnPT1.addEventListener(MouseEvent.CLICK , function (event: MouseEvent): void {timeline.reverse()});
var timeline:TimelineMax = new TimelineMax({onComplete:function ():void {timeline.pause();}, onReverseComplete:function ():void {gotoAndStop(10)}});
timeline.appendMultiple(TweenMax.allFrom([
mybtnLeiste1,
myBild1,
myAktualisieren,
myteaser1,
myteaser2,
myteaser3
], 0.8, {autoAlpha:0}, 0.1));
and frame 10
mybtnLeiste2.mybtnPT1_2.addEventListener(MouseEvent.CLICK , function (event: MouseEvent): void { timeline2.reverse()});
var timeline2:TimelineMax = new TimelineMax({onComplete:function ():void {timeline2.pause();}, onReverseComplete:function ():void {gotoAndStop(0)}});
timeline2.appendMultiple(TweenMax.allFrom([
mybtnLeiste2,
myUhr1,
myUhr2,
myUhr3,
myUhr4,
myUhr5
], 0.8, {autoAlpha:0}, 0.1));
Jumping by the button on frame 0 to frame 10 works. But jumping back from frame 10 to frame 0 gives an error
cant figure out a solution. Any help? (Still wondering why its was working in cs4)