1 Reply Latest reply on Nov 20, 2012 12:55 PM by kglad

    Card Flip in AS2? Tweenlite? plz help

    pa-pavel Level 1

      Hi,

       

      I am trying to figure out a way to achive a card flip both vertical and horizontal.

       

      In as3 this can be done rather easily using greensock.

       

      Something a long the lines of:

       

      var spinTween:TweenMax = TweenMax.from(objectMC, spinDuration * 0.5, {transformMatrix:{skewY:-180}, paused:true, repeat:cycles * 7 + 1, yoyo:true, ease:Linear.easeNone});

      researchIntroAnim.insert(TweenMax.to(spinTween, cycles * spinDuration, {totalTime:spinTween.totalDuration - spinDuration, ease:Back.easeOut}));

      researchIntroAnim.insert(TweenMax.to(tweenContainer, 1, {scaleX:10, scaleY:10, ease:Back.easeOut}));

       

      But I am struggling to convert this to AS2 or find anything remotly similar?

       

      Any suggestions are appriciated!

       

      Thx!