使用 amfphp 进行 Flash 远程处理时,我可以在 php 中编写什么来触发我在 Flash 中的响应程序中设置的“状态”方法?
或者更一般地说,我如何确定服务调用是否失败?对我来说理想的解决方案是在 php 服务器端抛出一些异常,并在 flash 客户端捕获该异常......其他人如何使用 flash 远程处理服务器错误?
var responder = new Responder(
function() {
trace("some normal execution finished successfully. this is fine.");
}, function(e) {
trace("how do I make this trigger when my server tells me something bad happened?");
}
);
myService = new NetConnection;
myService.connect("http://localhost:88/amfphp/gateway.php");
myService.call("someclass.someservice", responder);