# As tween question

**URL:** <https://forum.kirupa.com/t/as-tween-question/134869>\
**Category:** Uncategorized\
**Created:** [January 22, 2005, 10:23am UTC](https://forum.kirupa.com/t/as-tween-question/134869 "2005-01-22T10:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)\
**Post date:** [January 22, 2005, 10:23am UTC](https://forum.kirupa.com/t/as-tween-question/134869/1 "2005-01-22T10:23:42Z")

</div>

hello,

With the script below I am making a ball move from left to right and back. but when I rollover twice quickly, it also accepts the second rollover command. I would like it to accept that second rollover only when the first one is finished. I mean, I want the first to be finished before it accepts another rollover.  
I know it is simple to solve this with a tween using frames instead of as, but I was wondering if someone knows how to adapt the script.

> on(rollOver){  
> ballTween = new mx.transitions.Tween(balMC, “\_x”, mx.transitions.easing.Regular.easeOut,balMC.\_x, 44, .5, true);  
> ballTween.onMotionFinished = function() {  
> ballTweenterug = new mx.transitions.Tween(balMC, “\_x”, mx.transitions.easing.Regular.easeOut, 44,11.9, .5, true);  
> Thank you!  
> Jerryj
