Jump to content
Search Community

frosty383

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by frosty383

  1. solved!

     

    I added this into the root:

    var btnClicked:Boolean = false;

     

    function clickHandler(e:MouseEvent){

      btnClicked = true;

    }

     

    and now my tween looks like this

     

    var thisAnim = TweenLite.to(thisMc, T, {alpha:0, rotation:360, onUpdate:function(){
        if(MovieClip(root).btnClicked) thisAnim.kill();
    }, onComplete:function(){
        if(MovieClip(root).playBtnClicked) return;
        thisAnim.reverse();
    }, onReverseComplete:function(){
        if(MovieClip(root).playBtnClicked)return;
        thisAnim.restart();
    }});
     
    It works ok so far... If there is a better way to do it, please help!
    Thank you!
  2. Hey!

     

    I have something like this:

     

    var thisMc = this as MovieClip;

    var thisAnim = TweenLite.to(thisMc, T, {alpha:0, rotation:360, onComplete:function(){
       thisAnim.reverse();
    }, onReverseComplete:function(){
       thisAnim.restart();
    }});
     
    And the movieclip doesn't exist in the next frame.
    How can I remove the tween automatically when my SWF goes to the next frame?
    Thank you!
×
×
  • Create New...