Flash Player 对远程处理错误无响应 - AS2
我们有一个使用 Flash、AS2 和 ColdFusion 后端(远程处理)开发的应用程序。我观察到,当数据库查询失败并且进入 Flash 时,将调用 _result 处理程序(而不是 _status),并且播放器会因臭名昭著的无响应/中止脚本错误而挂起。
对结果进行跟踪不会产生任何结果。尝试枚举结果中的属性也不会产生任何结果。
这很奇怪。有谁知道可能导致此问题的原因/如何解决它?
We have an application that was developed with Flash, AS2 and ColdFusion backend (remoting). I observed that when there was a database query failure, and that came in to Flash, the _result handler will be called (instead of _status), and the player hangs with the infamous unresponsive / abort the script error.
Doing a trace on the result produces nothing. Trying to enumerate properties in the result also produces nothing.
That's very strange. Does anyone have any idea about what could be causing this / how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您尚未使用 Flash Player,请在浏览器中使用调试版本,它很可能会抛出异常弹出窗口。
第二件事是安装 http://amfexplorer.riaforge.org/ 并查看后端发送的内容,如果有的话。
如果这没有帮助,请尝试将结果解析代码放入 try-catch 中,看看它在哪里导致应用程序崩溃:
Use debug version of flash player in your browser if you don't use it already, most likely it will throw an exception popup.
Second thing is to install http://amfexplorer.riaforge.org/ and see what back-end sends, if anything.
If this doesn't help try putting result parsing code into try-catch and see where it blows up applciation: