AS2 attaching or duplicating the MC

Posted by ortho on Stack Overflow See other posts from Stack Overflow or by ortho
Published on 2010-03-30T09:26:17Z Indexed on 2010/03/30 9:33 UTC
Read the original article Hit count: 335

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about actionscript-2

Related posts about cs3