# Multiple mc's using same tween code

**URL:** <https://forum.kirupa.com/t/multiple-mcs-using-same-tween-code/188746>\
**Category:** Uncategorized\
**Created:** [May 10, 2006, 1:41pm UTC](https://forum.kirupa.com/t/multiple-mcs-using-same-tween-code/188746 "2006-05-10T13:41:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![massive3215](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/massive3215/32/253_2.png) [@massive3215](https://forum.kirupa.com/u/massive3215)\
**Post date:** [May 10, 2006, 1:41pm UTC](https://forum.kirupa.com/t/multiple-mcs-using-same-tween-code/188746/1 "2006-05-10T13:41:16Z")

</div>

I have 10 different movie clips that I all want to use the same tween code

```auto
function grow(who) {
	var tw:Tween = new Tween(who, "_xscale", Strong.easeOut, myMovieClip_mc._xscale, 92, 1, true);
	var tw2:Tween = new Tween(who, "_yscale", Strong.easeOut, myMovieClipl_mc._yscale, 92, 1, true);
}
function shrink(who) {
	var tw:Tween = new Tween(who, "_xscale", Strong.easeOut, myMovieClip_mc._xscale, 80, 1, true);
	var tw2:Tween = new Tween(who, "_yscale", Strong.easeOut, myMovieClip_mc._yscale, 80, 1, true);
}

```

Is there an easier way to just have this code written once rather than copying and pasting the code 10 times for all 10 instances of my clip. myMovieClip\_mc is where each instance would have it’s unique name. Thanks!
