代码实现的方法如下:
import mx.rpc.remoting.mxml.RemoteObject;
var ro:RemoteObject=new RemoteObject();
ro.destination="amfphp";
ro.endpoint="http://localhost/amfphp/gateway.php";
var op0:AbstractOperation =GlobalVariable.ro.getOperation( "remotedomo" );
op0.addEventListener(FaultEvent.FAULT,faultHandler);
op0.addEventListener(ResultEvent.RESULT,resultHandler);
op0.send();
以上主要的设置是指定了endpoint,在MXML中也是同样操作