Hi;
I am trying to duplicare a movieClip but it’s just showing last clip of duplicated movieclips. Please see the attachment for more information.
Here is my code:
myDoc = this._parent.btnDoc;
myDoc._visible = false;
myButton._visible = false;
myContent = new XML();
myContent.load("Press.xml");
myContent.ignoreWhite = true;
var aContent = new Array();
myContent.onLoad = function(success) {
for (i=0; i<myContent.childNodes.length; i++) {
myButton.duplicateMovieClip("Thumb_"+i,i);
eval("Thumb_"+i)._y = myButton._y+(i*24);
eval("Thumb_"+i).myText.text = myContent.childNodes*.attributes.name;
eval("Thumb_"+i).iVal = i;
eval("Thumb_"+i).onRelease = function() {
SelectedNode = this.iVal;
for (j=0; j<myContent.childNodes[SelectedNode].childNodes.length; j++) {
myDoc.duplicateMovieClip("btnDoc"+j);
this._parent._parent["btnDoc"+j].myText.text = myContent.childNodes[SelectedNode].childNodes[j].firstChild;
this._parent._parent["btnDoc"+j]._y += j*24;
trace(this._parent._parent["btnDoc"+j]);
}
};
}
};