Hi
I have 16 tweens happening at the same time which I’ve done using actionscript. Its basically the same thing happening 16 times with slight changes to coordinates and mc names in each tween.
Is there a way of creating an array with a list of mc names which can just be dropped in to a template? Below in my code:
Thanks
//Tween 1
trans1 = badgeList.search100(a1);
var mc1 = _root[trans1]
var y1 = _root[trans1]._y
var x1 = _root[trans1]._x
var go1h_y = _root.cont1h._y
var go1h_x = _root.cont1h._x
Tween1_y = new mx.transitions.Tween(mc1, "_y", easeType, y1, go1h_y, tweenspeed);
Tween1_x = new mx.transitions.Tween(mc1, "_x", easeType, x1, go1h_x, tweenspeed);
//Tween 2
trans2 = badgeList.search100(a2);
var mc2 = _root[trans2]
var y2 = _root[trans2]._y
var x2 = _root[trans2]._x
var go1a_y = _root.cont1a._y
var go1a_x = _root.cont1a._x
Tween2_y = new mx.transitions.Tween(mc2, "_y", easeType, y2, go1a_y, tweenspeed);
Tween2_x = new mx.transitions.Tween(mc2, "_x", easeType, x2, go1a_x, tweenspeed);
//Tween 3
trans3 = badgeList.search100(a3);
var mc3 = _root[trans3]
var y3 = _root[trans3]._y
var x3 = _root[trans3]._x
var go2h_y = _root.cont2h._y
var go2h_x = _root.cont2h._x
Tween3_y = new mx.transitions.Tween(mc3, "_y", easeType, y3, go2h_y, tweenspeed);
Tween3_x = new mx.transitions.Tween(mc3, "_x", easeType, x3, go2h_x, tweenspeed);
//Tween 4
trans4 = badgeList.search100(a4);
var mc4 = _root[trans4]
var y4 = _root[trans4]._y
var x4 = _root[trans4]._x
var go2a_y = _root.cont2a._y
var go2a_x = _root.cont2a._x
Tween4_y = new mx.transitions.Tween(mc4, "_y", easeType, y4, go2a_y, tweenspeed);
Tween4_x = new mx.transitions.Tween(mc4, "_x", easeType, x4, go2a_x, tweenspeed);
//Tween 5
trans5 = badgeList.search100(a5);
var mc5 = _root[trans5]
var y5 = _root[trans5]._y
var x5 = _root[trans5]._x
var go3h_y = _root.cont3h._y
var go3h_x = _root.cont3h._x
Tween5_y = new mx.transitions.Tween(mc5, "_y", easeType, y5, go3h_y, tweenspeed);
Tween5_x = new mx.transitions.Tween(mc5, "_x", easeType, x5, go3h_x, tweenspeed);
//Tween 6
trans6 = badgeList.search100(a6);
var mc6 = _root[trans6]
var y6 = _root[trans6]._y
var x6 = _root[trans6]._x
var go3a_y = _root.cont3a._y
var go3a_x = _root.cont3a._x
Tween6_y = new mx.transitions.Tween(mc6, "_y", easeType, y6, go3a_y, tweenspeed);
Tween6_x = new mx.transitions.Tween(mc6, "_x", easeType, x6, go3a_x, tweenspeed);
//Tween 7
trans7 = badgeList.search100(a7);
var mc7 = _root[trans7]
var y7 = _root[trans7]._y
var x7 = _root[trans7]._x
var go4h_y = _root.cont4h._y
var go4h_x = _root.cont4h._x
Tween7_y = new mx.transitions.Tween(mc7, "_y", easeType, y7, go4h_y, tweenspeed);
Tween7_x = new mx.transitions.Tween(mc7, "_x", easeType, x7, go4h_x, tweenspeed);
//Tween 8
trans8 = badgeList.search100(a8);
var mc8 = _root[trans8]
var y8 = _root[trans8]._y
var x8 = _root[trans8]._x
var go4a_y = _root.cont4a._y
var go4a_x = _root.cont4a._x
Tween8_y = new mx.transitions.Tween(mc8, "_y", easeType, y8, go4a_y, tweenspeed);
Tween8_x = new mx.transitions.Tween(mc8, "_x", easeType, x8, go4a_x, tweenspeed);
//Tween 9
trans9 = badgeList.search100(a9);
var mc9 = _root[trans9]
var y9 = _root[trans9]._y
var x9 = _root[trans9]._x
var go5h_y = _root.cont5h._y
var go5h_x = _root.cont5h._x
Tween9_y = new mx.transitions.Tween(mc9, "_y", easeType, y9, go5h_y, tweenspeed);
Tween9_x = new mx.transitions.Tween(mc9, "_x", easeType, x9, go5h_x, tweenspeed);
//Tween 10
trans10 = badgeList.search100(a10);
var mc10 = _root[trans10]
var y10 = _root[trans10]._y
var x10 = _root[trans10]._x
var go5a_y = _root.cont5a._y
var go5a_x = _root.cont5a._x
Tween10_y = new mx.transitions.Tween(mc10, "_y", easeType, y10, go5a_y, tweenspeed);
Tween10_x = new mx.transitions.Tween(mc10, "_x", easeType, x10, go5a_x, tweenspeed);
//Tween 11
trans11 = badgeList.search100(a11);
var mc11 = _root[trans11]
var y11 = _root[trans11]._y
var x11 = _root[trans11]._x
var go6h_y = _root.cont6h._y
var go6h_x = _root.cont6h._x
Tween11_y = new mx.transitions.Tween(mc11, "_y", easeType, y11, go6h_y, tweenspeed);
Tween11_x = new mx.transitions.Tween(mc11, "_x", easeType, x11, go6h_x, tweenspeed);
//Tween 12
trans12 = badgeList.search100(a12);
var mc12 = _root[trans12]
var y12 = _root[trans12]._y
var x12 = _root[trans12]._x
var go6a_y = _root.cont6a._y
var go6a_x = _root.cont6a._x
Tween12_y = new mx.transitions.Tween(mc12, "_y", easeType, y12, go6a_y, tweenspeed);
Tween12_x = new mx.transitions.Tween(mc12, "_x", easeType, x12, go6a_x, tweenspeed);
//Tween 13
trans13 = badgeList.search100(a13);
var mc13 = _root[trans13]
var y13 = _root[trans13]._y
var x13 = _root[trans13]._x
var go7h_y = _root.cont7h._y
var go7h_x = _root.cont7h._x
Tween13_y = new mx.transitions.Tween(mc13, "_y", easeType, y13, go7h_y, tweenspeed);
Tween13_x = new mx.transitions.Tween(mc13, "_x", easeType, x13, go7h_x, tweenspeed);
//Tween 14
trans14 = badgeList.search100(a14);
var mc14 = _root[trans14]
var y14 = _root[trans14]._y
var x14 = _root[trans14]._x
var go7a_y = _root.cont7a._y
var go7a_x = _root.cont7a._x
Tween14_y = new mx.transitions.Tween(mc14, "_y", easeType, y14, go7a_y, tweenspeed);
Tween14_x = new mx.transitions.Tween(mc14, "_x", easeType, x14, go7a_x, tweenspeed);
//Tween 15
trans15 = badgeList.search100(a15);
var mc15 = _root[trans15]
var y15 = _root[trans15]._y
var x15 = _root[trans15]._x
var go8h_y = _root.cont8h._y
var go8h_x = _root.cont8h._x
Tween15_y = new mx.transitions.Tween(mc15, "_y", easeType, y15, go8h_y, tweenspeed);
Tween15_x = new mx.transitions.Tween(mc15, "_x", easeType, x15, go8h_x, tweenspeed);
//Tween 16
trans16 = badgeList.search100(a16);
var mc16 = _root[trans16]
var y16 = _root[trans16]._y
var x16 = _root[trans16]._x
var go8a_y = _root.cont8a._y
var go8a_x = _root.cont8a._x
Tween16_y = new mx.transitions.Tween(mc16, "_y", easeType, y16, go8a_y, tweenspeed);
Tween16_x = new mx.transitions.Tween(mc16, "_x", easeType, x16, go8a_x, tweenspeed);