# AS3 and Tweener

**URL:** <https://forum.kirupa.com/t/as3-and-tweener/269944>\
**Category:** Uncategorized\
**Created:** [September 3, 2008, 12:49pm UTC](https://forum.kirupa.com/t/as3-and-tweener/269944 "2008-09-03T12:49:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodlab2x](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rodlab2x](https://forum.kirupa.com/u/rodlab2x)\
**Post date:** [September 3, 2008, 12:49pm UTC](https://forum.kirupa.com/t/as3-and-tweener/269944/1 "2008-09-03T12:49:07Z")

</div>

Does somebody knows how to cancel an active Tweener command? for example if I roll over a button with this action.

Tweener.addTween(step2, {alpha:1,delay:0.9,time:0.5,transition:“easeInOutSine”});

And suddenly I roll over step3 for example.

Tweener.addTween(step3, {alpha:1,delay:0.9,time:0.5,transition:“easeInOutSine”});

Sometimes it executes the code above showing both steps at the same time. I tried using both ROLL\_OVER and MOUSE\_OVER on the event listener but if I go over one fast and back it displays both.

Seems like the ROLL\_OUT making step2.alpha = 0; is not be working right. Is there a code to cancel that tweener command when I roll over the next one?
