
Код:
_root[mcLeft[i]].onMouseUp
Для кого вы описали это событие? ответ: для _root.mcLeft6
Сначала вы пишете так:

Код:
coord[1][i]=_root[mcLeft[i]]._x;
coord[2][i]=_root[mcLeft[i]]._y;
А потом так:

Код:
_root[mcLeft[i]].x=coord[i][1];
_root[mcLeft[i]].y=coord[i][2];
Ошибка в массивах.
x, y - нет таких свойств у мувиков. Если только вы их не описали
Вот так бы я сделал: (имена клипов оставьте теми же)

Код:
for (i = 1; i <= 5; i++) {
mcdrag(_root["mcLeft" + i], i);
}
function mcdrag (mc, i) {
mc.old_x = mc._x;
mc.old_y = mc._y;
mc.targetmc = "mcRight" + i;
mc.onPress = startDrag;
mc.onRelease = test;
}
function test(){
if (this.hitTest(_root[this.targetmc])) {
trace ("yes");
this._x = _root[this.targetmc]._x;
this._y = _root[this.targetmc]._y;
this.stopDrag();
}else {
trace("no");
this._x = this.old_x;
this._y = this.old_y;
this.stopDrag();
}
}