-------------------
Pongo el código del php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
$nombre = "johnmartin es mi nombre";
print "nombre = ".$nombre;
?>
</body>
</html>
-------------------
y pongo el código de flash
var a:LoadVars = new LoadVars ();
a.load("miphp.php");
a.onLoad = function (exito){
if (exito) {
texto_txt.text = this.nombre;
} else {
texto_txt.text = "Error";
}
};
----------------------
He probado a sustituir el php por un miphp.txt situando la variable en un txt y si que funciona, por lo tanto el LoadVars la carga bien y la asigna al campo de texto bien.
He probado a ejecutar el miphp.php en el navegador y si que me muestra el resultado del php.
Por lo tanto, si el php da la salida bien y el flash funciona bien, ¿dónde está el error?
Gracias por vuestro tiempo,
Clemen