Hello,
how can i simplify this code so i won’t have to write long lines of the same thing?
img.dot1.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 347.7, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 447, .50, true);
}
img.dot2.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 538, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 274, .50, true);
}
img.dot3.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 538, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 274, .50, true);
}
img.dot4.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 502, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 245, .50, true);
}
img.dot5.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 502, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 245, .50, true);
}
img.dot6.onRelease = function () {
new Tween(img, "_x", Strong.easeIn, img._x, 502, .50, true);
new Tween(img, "_y", Strong.easeIn, img._y, 245, .50, true);
}
please advice.
thanks.:hitman2: