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 pc😛endingCall = 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!");

    Your code is actionscript. This is a php forum. You should post that on the macromedia site:

    http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=15

    You can also check out the amfphp forum on sourceforge.net:

    http://sourceforge.net/forum/forum.php?forum_id=247252

    have you tried running the flash movie withing the flash authoring application? seems to me you'd get an error on this line:

    var pc:PendingCall = HelloWorld.say("Hi!");
    

    because you haven't defined any objects named HelloWorld.

    maybe try this?

    trace("Calling Say()");
    var pc:PendingCall = service.say("Hi!");
    pc.responder = new RelayResponder(this, "handleSay", "handleRemotingError");
    

    or perhaps this:

    trace("Calling Say()");
    say("Hi!");
    
      Write a Reply...