# Want re-use this code in other places

**URL:** <https://forum.kirupa.com/t/want-re-use-this-code-in-other-places/319260>\
**Category:** flash\
**Created:** [February 14, 2011, 2:56pm UTC](https://forum.kirupa.com/t/want-re-use-this-code-in-other-places/319260 "2011-02-14T14:56:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Winstonian](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@Winstonian](https://forum.kirupa.com/u/Winstonian)\
**Post date:** [February 14, 2011, 2:56pm UTC](https://forum.kirupa.com/t/want-re-use-this-code-in-other-places/319260/1 "2011-02-14T14:56:00Z")

</div>

Folks I’m just now learning how to use code more efficiently and i now there is a better way to reuse some of the code i’m using. For instance, how do i make this code into a reusable object(i guess with some parameters).

* * *

Tweener.addTween(bullText\_1, {scaleX:1.3, time:1.5, transition:“easeOutQuart”, delay:5});  
Tweener.addTween(bullText\_1, {scaleY:1.3, time:1.5, transition:“easeOutQuart”, delay:5});  
Tweener.addTween(bullText\_1, {alpha:1, time:1.5, transition:“linear”, delay:5});  
Tweener.addTween(bull\_1, {alpha:1, time:1.5, transition:“linear”, delay:5});  
Tweener.addTween(bull\_1, {x:469, time:1.0, transition:“easeOutQuart”, delay:5});  
Tweener.addTween(bull\_1, {scaleX:1.3, time:1.5, transition:“easeOutQuart”, delay:5});  
Tweener.addTween(bull\_1, {scaleY:1.3, time:1.5, transition:“easeOutQuart”, delay:5});

* * *

I’know there is a better leaner way of writing this.

WW.
