# How can i clean Function or Interval (Tweener)

**URL:** <https://forum.kirupa.com/t/how-can-i-clean-function-or-interval-tweener/318156>\
**Category:** flash\
**Created:** [January 11, 2011, 9:50pm UTC](https://forum.kirupa.com/t/how-can-i-clean-function-or-interval-tweener/318156 "2011-01-11T21:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esferaweb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esferaweb/32/2104_2.png) [@esferaweb](https://forum.kirupa.com/u/esferaweb)\
**Post date:** [January 11, 2011, 9:50pm UTC](https://forum.kirupa.com/t/how-can-i-clean-function-or-interval-tweener/318156/1 "2011-01-11T21:50:26Z")

</div>

how can i make this replay button? i need to kill the “delays” at function. how can i make this?

```auto
function arrocha() {

    Tweener.addTween(f1, { _alpha: 0 });
    Tweener.addTween(f1, { _alpha: 100, time: 1 });
    Tweener.addTween(f1, { _alpha: 0, time: 1, delay: 2 });

    Tweener.addTween(f2, { _alpha: 0 });
    Tweener.addTween(f2, { _alpha: 100, time: 1, delay: 2 });
    Tweener.addTween(f2, { _alpha: 0, time: 1, delay: 4.5 });

}

arrocha();

replay.onRelease = function() {

    Tweener.addTween(replay, { _alpha: 0, time: 1 });
    arrocha();

};

```
