1 Reply Latest reply on Jul 29, 2008 8:49 AM by vinnio

    TweenClass (unload, stop or clear?)  flash8 AS2

      How can I clear, reset, stop or unload a tween that is active? I want to reset also the thumbnail_mc._x to 22. So if an new XML loads the thumbnail_mc._x will be on 22 without interfair of the tweenanimationClass that is active. Stop also won't work...

      import mx.transitions.Tween;
      import mx.transitions.easing.*;

      var tween1:Tween = new Tween(thumbnail_mc, "_x", Strong.easeOut, thumbnail_mc._x, -menu, 50, false);

      stopTween_btn.onRelease = function() {

        • 1. Re: TweenClass (unload, stop or clear?)  flash8 AS2
          vinnio Level 1
          I found something that works. I buildup my tween in a nother way. This works when I press 1 time on the left or right button. But there's one problem and that is when I press the left or right button 2 times (fast) the tween is still active and my images are moving a little bit again.

          Can somebody try to fix this I can't get this one right?

          Many thanks!!!