Bueno, otra vez problemas a la hora de probar remoting y amfphp...
El codigo del gateway.php(que esta en la carpeta "flashservices":
Código :
<?php
include ("app/Gateway.php");
$gateway = new Gateway ();
$gateway ->setBaseClassPath ("services/");
$gateway ->service();
?>
Y bueno, hice una pequeña pelicula de flash para probarlo:
Código :
import mx.remoting.NetServices;
import mx.remoting.Connection;
mx.remoting.debug.NetDebug.initialize();
NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway.php");
conn = NetServices.createGatewayConnection();
serv = conn.getService("test", testRemoting);
serv.testeo("Esto esta andando!!");
testRemoting = new Object();
testRemoting.test_Result = function(respuesta) {
texto.text = respuesta;
};
testRemoting.onStatus = function(respuesta) {
trace(respuesta);
};
Y "test.php", el servicio:
Código :
<?php
class test
{
function test(){
$this->methodTable = array(
"testeo" => array(
"description" => "Toma y envia el mensaje enviado por flash",
"access" => "remote",
"arguments" => array(
"llamada")//Mensaje proveniente de Falsh...
)
);
}
function testeo($llamada){
return $llamada;
}
}
?>
Bueno, instale remoting para AS 1 y para AS 2... antes funcionaba todo... formatee la pc, reinstale todo, y ahora no anda
Bueno, espero que me puedan ayudar...
