Vuelvo a abrir este tema del problema con el XML, ahora, no se que pasa, mando llamar a un xml pero me dice que hay un error de servidor, y si abro la asp que genera el xml, jala sin ningun problema, aqui les dejo los detalles, haber si alguien me puede orientar
1ro. la pagina que genera el xml es:
http://www.fmc.org.mx/vueltasonora/Formas/generaNota.asp?id=1En esta pagina no hay ningun problema, asp me genera perfectamente el xml
2do. Mi pelicula de flash que carga el xml, pueden entrar a:
http://www.fmc.org.mx/vueltasonora/ luego dan click en noticias y cuando se cargue la primer noticia, dan click en 'Más...', ahi es donde tendría que aparecer la nota generada por la pagina del primer punto.
3ro. el codigo: es muy sencillo el codigo que uso:
Código :
stop();
var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("CSS/noticias.css");
nota_txt.styleSheet = myStyle;
nota_txt.multiline = true;
nota_txt.wordWrap = true;
nota_txt.html = true;
nota_txt.htmlText = "<b>Cargando...</b>";
var story:XML = new XML();
story.sendAndLoad(ruta+"Formas/generaNota.asp? id="+notas.firstChild.childNodes[Index].attributes.rsId, story);//mando llamar mi asp
story.ignoreWhite = true;
story.onLoad = function(exito) {
if (exito) {
nota_txt.htmlText = story;
} else {
_root.container.myTrace_txt.text += "Index: "+Index;
nota_txt.htmlText = "<b>¡Error!</b>";
}
};
story.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if (httpStatus<100) {
this.httpStatusType = "flashError";
} else if (httpStatus<200) {
this.httpStatusType = "informational";
} else if (httpStatus<300) {
this.httpStatusType = "successful";
} else if (httpStatus<400) {
this.httpStatusType = "redirection";
} else if (httpStatus<500) {
this.httpStatusType = "clientError";
} else if (httpStatus<600) {
this.httpStatusType = "serverError";
}
};
story.onData = function(src:String) {
_root.container.myTrace_txt.text += src+"\n";
_root.container.myTrace_txt.text += ">> "+this.httpStatusType+": "+this.httpStatus+"\n";
if (src != undefined) {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
} else {
this.onLoad(false);
}
};Espero alguien me pueda ayudar, gracias