nomefile = new Array();
_root.nomefile.push(myarray2[i].attributes.id);
trace(nomefile[i]);

il path è giusto?