Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
故意从AMFPHP返回错误_Php_Flash_Actionscript 3_Remoting_Amfphp - Fatal编程技术网

故意从AMFPHP返回错误

故意从AMFPHP返回错误,php,flash,actionscript-3,remoting,amfphp,Php,Flash,Actionscript 3,Remoting,Amfphp,在amfphp中使用flash远程处理时,我可以用php编写什么来触发我在flash中的响应程序中设置的“status”方法 或者更一般地说,如何确定服务调用是否失败?对我来说,理想的解决方案是在php服务器端抛出一些异常,然后在flash客户端捕获该异常。。。其他人如何通过flash远程处理处理服务器错误 var responder = new Responder( function() { trace("some normal execution finished s

在amfphp中使用flash远程处理时,我可以用php编写什么来触发我在flash中的响应程序中设置的“status”方法

或者更一般地说,如何确定服务调用是否失败?对我来说,理想的解决方案是在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);

我知道我做错了什么。从php调用throw将正确触发响应者的错误处理程序,但我用来嗅探网络流量的工具挡住了去路,打乱了调用。

对不起,我听不懂你的话,请澄清你的问题,这样你可以快速获得帮助