AS2 attaching or duplicating the MC
- by ortho
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("tekst.xml");
myXML.onLoad = function(success){
var yC:Number = 65;
if (success){
var myTxt:Array = Array(0);
var myNode = this.firstChild.childNodes;
for (i=0; i
}
}
var c:Number = 70
for(hiThere=1;hiThere<5;hiThere++){
kropka1.duplicateMovieClip("circleCopy"+hiThere, c);
this["circleCopy"+hiThere]._y=c;
c += 20;
}
So my problem is that I want to create it dynamicaly as text fields above, now it creates only 4 MovieClips and I would like to specify the Y value from xml file and number of loops (here 5), but it should be the same condition as loop above.
Please help