Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/09/2005, 11:09
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Hola drake1983:
Prueba colocando éstos códigos en el archivo mail.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<correo>
<asunto>Aviso de Suspensión</asunto>
<texto>Por este medio se le informa que se le suspenderá el servicio
inmediatamente</texto>
<asunto>Saludos</asunto>
<texto>Bienvenido a este nuevo mundo integrando flash y XML</texto>
</correo>
Tienes que crear 4 campos de texto dinámico con las variables: asunto1, cuerpo2, asunto3 y cuerpo4.
En el primer frame éste código:
System.useCodePage=true;
function cargaXML() {
primerNivel = this.firstChild;
mensaje = primerNivel.childNodes;
n1 = mensaje[0].firstChild;
n2 = mensaje[1].firstChild;
n3 = mensaje[2].firstChild;
n4 = mensaje[3].firstChild;
asunto1 = n1.nodeValue;
cuerpo2 = n2.nodeValue;
asunto3 = n3.nodeValue;
cuerpo4 = n4.nodeValue;
limpiaXML();
}
function limpiaXML() {
delete primerNivel;
delete noticias;
delete n1;
delete n2;
delete n3;
delete n4;
delete docXML;
}
var docXML = new XML();
docXML.ignoreWhite = true;
docXML.onLoad = cargaXML;
docXML.load("mail1.xml");

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/