import mx.remoting.NetServices;
import mx.remoting.Connection;
mx.remoting.debug.NetDebug.initialize();
capturaRespuesta = new Object();
capturaRespuesta.enviar_Result = function(data) {
trace("Dato recibido del servidor: "+data);
};
capturaRespuesta.onStatus = function(data) {
trace("Ocurrio un error.");
trace("Detalles del error: "+data.description);
};
NetServices.setDefaultGatewayUrl("http://localhost/remoting/gateway.php");
conn = NetServices.createGatewayConnection();
serv = conn.getService("holaMundo", capturaRespuesta);
serv.enviar("Probando");
siempre me da el error :
Ocurrio un error.
Detalles del error: Undefined index: errorLevel
No tengo ni idea de que puede ser no se si he hecho algo mal al instalar el amfphp o que.
Tengo flash mx2004 y he instalado los componentes de as2.0.
Gracias de antemano