لقد قمت بعمل تكرار لموفي يأخذ صوره مصغره عن الصوره الفعليه وأريد أن أجعل هذا الموفي زر يأخذ كود وصله للصوره الكبيره
بإختصار كل ما أريده هو معرفه إسم الموفي المكرر من خلال الضغظ عليه
هذا هو الكود الذي إستخدمته
stop();
j = "0";
x2 = "0";
hlp = "hlp";
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
remove = this.firstChild.attributes.remove;
menuItem = this.firstChild.childNodes;
for (var i = 0; i<menuItem.length; i++) {
noden = menuItem.nodeName;
if (noden.toLowerCase() == "item") {
j++;
duplicateMovieClip(_root.hlp.galary.b1, "b" add i, i);
setProperty("_root.hlp.galary." add "b" add i, _x, j*180);
setProperty("_root.hlp.galary." add "b" add i, _y, x2*210);
tellTarget ("_root.hlp.galary." add "b" add i) {
this.onPress = function() {
getURL("images/" add _root.namehpl add "/URL/" add menuItem.attributes.url, "_blank");
};
}
loadMovie("images/" add _root.namehpl add "/" add menuItem.attributes.p, "_root.hlp.galary." add "b" add i);
if (j == 3) {
j = 0;
x2++;
}
}
}
}
};
menuXml.load(_root.namehpl add ".xml");
hit = getProperty("_root.hlp.galary", _height);