# TweenClass (unload, stop or clear?) flash8 AS2

**URL:** <https://forum.kirupa.com/t/tweenclass-unload-stop-or-clear-flash8-as2/267158>\
**Category:** flash\
**Created:** [July 29, 2008, 9:20am UTC](https://forum.kirupa.com/t/tweenclass-unload-stop-or-clear-flash8-as2/267158 "2008-07-29T09:20:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vince19](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@Vince19](https://forum.kirupa.com/u/Vince19)\
**Post date:** [July 29, 2008, 9:20am UTC](https://forum.kirupa.com/t/tweenclass-unload-stop-or-clear-flash8-as2/267158/1 "2008-07-29T09:20:47Z")

</div>

**[COLOR=#800080][COLOR=#000000][SIZE=2]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 won’t work…[/SIZE][/COLOR][/COLOR]**

**(flash 8 as2)**

[COLOR=#800080]**[SIZE=2][COLOR=#800080]import mx.transitions.Tween;[/COLOR][/SIZE]**  
**[SIZE=2][COLOR=#800080]import mx.transitions.easing.\*;[/COLOR][/SIZE]**

**[SIZE=2][COLOR=#800080]var tween1:Tween = new Tween(thumbnail\_mc, “\_x”, Strong.easeOut, thumbnail\_mc.\_x, -menu, 50, false);[/COLOR][/SIZE]**

**stopTween\_btn.onRelease = function() {  
animTween.stop();  
trace(“click”);  
};**

[SIZE=2][COLOR=#800080]thanks![/COLOR][/SIZE]  
[/COLOR]
