I have 10 different movie clips that I all want to use the same tween code
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!