# I cant stop my tweens!

**URL:** <https://forum.kirupa.com/t/i-cant-stop-my-tweens/205127>\
**Category:** flash\
**Created:** [October 26, 2006, 12:28pm UTC](https://forum.kirupa.com/t/i-cant-stop-my-tweens/205127 "2006-10-26T12:28:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [October 26, 2006, 12:28pm UTC](https://forum.kirupa.com/t/i-cant-stop-my-tweens/205127/1 "2006-10-26T12:28:58Z")

</div>

Hiya, thanks for checking this. I am using a function that targets a movie clip and then performs a yoyo() tween on it. I then want to call this function and stop the same tween (passing a false value) but I can’t figure out why this is not working.  
If anyone has any ideas it would be a big help.  
Thanks! 🙂  
[AS]  
function highlightCard(target:MovieClip, highlightIt:Boolean) {  
trace(“highlight card:”+highlightIt+":"+target);  
var pulseSpeed:Number = 0.4;   
var origY:Number = target.\_y;  
if (highlightIt) {   
var myTween:Tween = new Tween(target, “\_xscale”, None.easeNone, 100, growSize, pulseSpeed, true);  
myTween.onMotionFinished = function() {  
this.yoyo();  
};  
var myTween2:Tween = new Tween(target, “\_yscale”, None.easeNone, 100, growSize, pulseSpeed, true);  
myTween2.onMotionFinished = function() {  
this.yoyo();  
};  
} else {  
trace(“SHOULD STOP TWEEN”);   
target.myTween.stop()  
target.myTween2.stop()  
target.\_xscale = 100;  
target.\_yscale = 100;

```
}

```

}[/AS]
