Одна проблема исчезала (
http://flasher.ru/forum/showthread.php?p=569821), но потребовалось расширить XML, и появилась новая...
Проблема с отображением дублированных мувиков
Код AS:

Код:
data_xml.onLoad = function(success) {
if (success) {
for (i = 0; i < this.firstChild.childNodes.length; i++) {
rus_xml_length = this.firstChild.childNodes.length;
out_txt.text += "Статус XML: " + data_xml.status + newline;
//region_map.push(data_xml.firstChild.childNodes[i].attributes.map);
region_number.push(data_xml.firstChild.childNodes[i].attributes.number);
bank_type.push(data_xml.firstChild.childNodes[i].childNodes[0].attributes.type);
bank_label.push(data_xml.firstChild.childNodes[i].childNodes[0].attributes.label);
description.push(data_xml.firstChild.childNodes[i].childNodes[0].childNodes[0].childNodes[0].nodeValue);
//
//флаги:
for (j = 0; j < this.firstChild.childNodes[i].childNodes.length; j++) {
icons_x.push(data_xml.firstChild.childNodes[i].childNodes[j].attributes.x);
icons_y.push(data_xml.firstChild.childNodes[i].childNodes[j].attributes.y);
icons_type.push(data_xml.firstChild.childNodes[i].childNodes[j].attributes.type);
icons_label.push(data_xml.firstChild.childNodes[i].childNodes[j].attributes.label);
}
for (j = 1; j < icons_x.length; j++) {
trace(icons_label[j]);
_root.flag_mc.duplicateMovieClip("ico_flag" + j + "R_mc", [_root.getNextHighestDepth()]);
_root["ico_flag" + j + "R_mc"].gotoAndStop(icon_type[j]);
_root["ico_flag" + j + "R_mc"].city_txt.html = true;
_root["ico_flag" + j + "R_mc"].city_txt.htmlText = icon_label[j];
this["ico_flag" + j + "R_mc"]._x = _root[region_number[i] + "_mc"]._x + icon_x[j];
this["ico_flag" + j + "R_mc"]._y = _root[region_number[i] + "_mc"]._y + icon_y[j];
}
_root[region_number[i] + "_mc"]._alpha = 100;
_root[region_number[i] + "_mc"].i = i;
_root[region_number[i] + "_mc"].onRollOver = function() {
_root[region_number[this.i] + "_mc"]._alpha = 70;
};
_root[region_number[i] + "_mc"].onRollOut = function() {
_root[region_number[this.i] + "_mc"]._alpha = 100;
};
_root[region_number[i] + "_mc"].onDragOut = function() {
_root[region_number[this.i] + "_mc"]._alpha = 100;
};
_root[region_number[i] + "_mc"].onRelease = function() {
out2_txt.htmlText = description[this.i] + newline;
};
flag_mc.duplicateMovieClip("flag" + i + "R_mc", i);
_root["flag" + i + "R_mc"].gotoAndStop(Number(bank_type[i]));
_root["flag" + i + "R_mc"].city_txt.html = true;
_root["flag" + i + "R_mc"].city_txt.htmlText = bank_label[i];
_root["flag" + i + "R_mc"]._x = _root[region_number[i] + "_mc"]._x;
_root["flag" + i + "R_mc"]._y = _root[region_number[i] + "_mc"]._y;
//
}
} else {
out_txt.text += "Произошла ошибка!";
}
};
XML:

Код:
<objects>
<region number="20">
<bank type="1" label="Город (HTML)">
<desc>Информация о Городе 1</desc>
</bank>
<icon x="3" y="3" type="1" label="Один"/>
<icon x="5" y="5" type="2" label="Два"/>
<icon x="7" y="5" type="1" label="Три"/>
<icon x="9" y="5" type="2" label="Четыре"/>
<icon x="11" y="5" type="1" label="Пять"/>
</region>
</objects>
Мувики никак не хотят появляться на карте, хелп...