Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/10/2006, 20:07
Avatar de bernethe
bernethe
 
Fecha de Ingreso: abril-2004
Ubicación: San José, Costa Rica
Mensajes: 384
Antigüedad: 20 años
Puntos: 2
Prueba así:

CÓDIGO FLASH:
var miXML:XML = new XML();
miXML.ignoreWhite = true;
miXML.load("archivo.php");
miXML.onLoad = function(ok) {
if (ok) {
_root.createTextField("tst_txt", _root.getNextHighestDepth(), 10, 10, 400, 300);
tst_txt.wordWrap = true;
tst_txt.text = miXML.toString();
} else {
trace("ErRoR");
}
};

CÓDIGO PHP:
<?php
header("Content-type: text/xml");
$respuesta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";
$respuesta .= "<novedades>\n";
$respuesta .= "<novedad>Novedad 1</novedad>\n";
$respuesta .= "</novedades>\n";
echo $respuesta;
?>


Y RECUERDA, probarlo en el servidor, no a nivel local.
__________________
..::BERNETHE::..