por ejemplo:
_global.tamano=0;
imgXML=new XML();
imgXML.ignoreWhite=true;
imgXML.onLoad=function(succes){
if(succes){
for(var i=0;i<this.firstChild.childNodes.length;i++){
imagen=this.firstChild.childNodes[i].attributes.id;
}
_global.tamano=this.firstChild.childNodes.length;//altero el valor de la variable tamano
}
}
imgXML.load("imagenes.xml");
trace(_global.tamano);// <-pero sigue enviando 0
saludos...