I have this code that rotates a movie clip.... I use all the time, but it works great in the old timeline max but not in the new can someone help me fix it..
import com.greensock.*;
import com.greensock.easing.*;
var flipSpeed:Number = 0.3;
flipper.back.rotationY = -180;
flipper.back.alpha=0;
flipper.addEventListener(MouseEvent.CLICK, flipCard1);
var isFlipPlaying1 = false;
var tl:TimelineMax = new TimelineMax({paused:true});
tl.append(TweenMax.to(flipper.front, flipSpeed, {rotationX:180, visible:false, ease:Linear.easeNone}))
tl.append(TweenMax.to(flipper.back, 0, {alpha:1, immediateRender:false}))
tl.append(TweenMax.to(flipper.back, flipSpeed, {rotationX:0, ease:Linear.easeNone}))
function flipCard1(event:MouseEvent):void
{
switch (isFlipPlaying1)
{
case true :
isFlipPlaying1 = false;
trace("playing false");
tl.tweenTo(0);
break;
case false :
isFlipPlaying1 = true;
trace("playing true");
tl.tweenTo(tl.duration);
break;
}
}