Ok this may not be the right forum for this question. But I am trying to us AMFPHP to facilitate flash remoting with php. However I don't seem to be able to call any of the remote methods. Can someone identify the problem with this code:
import mx.remoting.;
import mx.rpc.;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;
var gatewayUrl:String = "http://localhost/game/gateway.php";
NetDebug.initialize();
var service = new Service(this.gatewayUrl, null, "HelloWorld");
//No description given.
function say(sMessage)
{
trace (sMessage);
var pcendingCall = service.say(sMessage);
pc.responder = new RelayResponder(this, "handleSay", "handleRemotingError");
}
function handleSay(re:ResultEvent)
{
trace("HandleSay");
//Implement custom callback code
}
function handleRemotingError( fault:FaultEvent ):Void
{
NetDebug.trace({level:"None", message:"Error: " + fault.fault.faultstring });
}
trace("Calling Say()");
var pc:PendingCall = HelloWorld.say("Hi!");