guys… im creating a flash that attachMovie from Library and loadMovie into this attached movie… here the code:
var mdXML:XML = new XML();
mdXML.ignoreWhite = true;
mdXML.load(_global.path + "midia.xml");
mdXML.onLoad = function() {
var qtd:Number = this.childNodes[0].childNodes[2].childNodes.length;
for (ver = 0; ver < qtd; ver++) {
var txJNome = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[0].firstChild);
var txJImg = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[1].firstChild);
var txJDsc = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[2].firstChild);
attachMovie("jobClip","job"+ver,1+ver);
"job"+ver.cont.loadMovie(_global.path + txJImg);
}
//#
}
The childNodes is right, but when i put the new name for a jobClip, that is attached, give me error in line:
"job"+ver.cont.loadMovie(_global.path + txJImg);
how use the new name for atribute new parameters ???
Thanks in advance.