1 Reply Latest reply on Aug 13, 2010 2:17 PM by Ned Murphy

    How can I do the same for Motion Tween?

    learner_7n Level 1

      Hi,

       

      The following code is for playing a movie once it is done. In the same way how can I do for a stopped motion tween?

       

      Thanks in advance.

       

      The code is:

       

      var aboutTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,-1000,1,true);

       

      aboutTween.addEventListener(TweenEvent.MOTION_FINISH,donePlaying);

       

      function donePlaying(e:TweenEvent):void{
          trace ("done playing!");
          content_mc.about_mc.myVideo.play();
      }