holas, tengo un problemilla al meter lso resultados de un xml en un array, para poder después colocar los nombres de los botones etc en cualquier idioma (en función del xml que cargue), hasta ahi bien, pero el caso es que no consigo la manera de que el array (creado fuera de la funcion onLoad) que creo y el que se me rellena en la funcion onLoad sean el mismo, no se porque porque lo he hecho _global y tampoco funciona. Bueno os dejo el script que lo vereis más facil.

var Idioma = "es"/*_root.Lengua*/;

System.useCodepage = true;

var textoInterface:XML = new XML();
textoInterface.ignoreWhite = true;
sections = new Array();
textoInterface.load("XML/interface-"+Idioma+".xml");
textoInterface.onLoad = function()
{
sections["soluciones"] = textoInterface.firstChild.firstChild.childNodes[0].attributes.titulo;
sections["smart"] = textoInterface.firstChild.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
sections["quees"] = textoInterface.firstChild.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
sections["productos"] = textoInterface.firstChild.firstChild.childNodes[1].attributes.titulo;
sections["sistemas"] = textoInterface.firstChild.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
sections["pintura"] = textoInterface.firstChild.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
sections["complementos"] = textoInterface.firstChild.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
sections["contactar"] = textoInterface.firstChild.firstChild.childNodes[2].attributes.titulo;
sections["datos"]=textoInterface.firstChild.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
sections["bkpag"]=textoInterface.firstChild.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
}

recordad que ya lo he probado con _global tanto al crear como al referirme al array desde dentro de la función.