# Stop yoyo or reverse tween

**URL:** <https://forum.kirupa.com/t/stop-yoyo-or-reverse-tween/248607>\
**Category:** flash\
**Created:** [January 10, 2008, 2:31am UTC](https://forum.kirupa.com/t/stop-yoyo-or-reverse-tween/248607 "2008-01-10T02:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_arry](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@b\_arry](https://forum.kirupa.com/u/b_arry)\
**Post date:** [January 10, 2008, 2:31am UTC](https://forum.kirupa.com/t/stop-yoyo-or-reverse-tween/248607/1 "2008-01-10T02:31:11Z")

</div>

I want the tween to end when the alpha and the \_x tween go back to the beginning

here is my code

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
var xScaleT:Tween = new Tween(kText, “\_x”, Back.easeOut, 0, 476.7, 3, true);  
var alpha:Tween = new Tween(kText, “\_alpha”, Regular.easeIn, 0, 100, 1, true);  
xScaleT.onMotionFinished = function() {

this.yoyo();  
alpha.yoyo();

};

I cant stop the code without interuppting the reversal of the tween.
