# Delay a Tween so other tweens can finish first?

**URL:** <https://forum.kirupa.com/t/delay-a-tween-so-other-tweens-can-finish-first/213915>\
**Category:** flash\
**Created:** [January 24, 2007, 7:19am UTC](https://forum.kirupa.com/t/delay-a-tween-so-other-tweens-can-finish-first/213915 "2007-01-24T07:19:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmakat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/karmakat/32/476_2.png) [@karmakat](https://forum.kirupa.com/u/karmakat)\
**Post date:** [January 24, 2007, 7:19am UTC](https://forum.kirupa.com/t/delay-a-tween-so-other-tweens-can-finish-first/213915/1 "2007-01-24T07:19:49Z")

</div>

Hi…

I am having trouble figuring out the best way to delay a tween if a mc is still tweening…

anyone have any suggestions? I tried setInterval but couldn’t figure out how to make it work at least in this context…

i have several functions that might be causing the slider\_mc to be tweening at any moment (including this one…), and i need the buttons to respond (eventually) to the users press even if they hammer it… but if they do the tween gets interupted and starts from some uneven \_x and gets out of alignment. It should only be moved + or - 100 pixels at a time…

my movement functions are like below:

[AS]function moveRight() {  
var rightTween = new Tween(slider\_mc, “\_x”, Strong.easeOut, slider\_mc.\_x, slider\_mc.\_x-100, 2, true);  
rightTween[“onMotionFinished”] = function () {  
trace (“rightTween Finished”);  
}[/AS]

Note that i am using mx2004, and this is the only syntax where onmotionfinished will seem to respond…  
Thanks!
