
18/03/2009, 16:34
|
 | | | Fecha de Ingreso: mayo-2007 Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años, 8 meses Puntos: 67 | |
Respuesta: Cargar datos xml en flash as2 Intenta asi:
Código:
var obj_xml:XML = new XML();
obj_xml.ignoreWhite = true;
obj_xml.onLoad = function(exito) {
if (exito) {
articulo.text = obj_xml.firstChild.childNodes[0].firstChild.nodeValue;
descripcion.text = obj_xml.firstChild.childNodes[1].firstChild.nodeValue;
precio.text = obj_xml.firstChild.childNodes[2].firstChild.nodeValue;
imagen = obj_xml.firstChild.childNodes[3].firstChild.nodeValue;
_root.pantalla_mc.loadMovie(imagen);
} else {
cuerpo_txt.text = "Error";
}
};
obj_xml.load("OFERTAS-WEB.xml");
|