5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2007-04-12
http://mmommo.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2004/12/20 | remoting as2.0 版 捕获连接失败!
类别(Remoting)
|
评论
(0)
|
阅读(86)
|
发表于 14:20
Remoting和getway无法连接不会调用 Responder.onFault。
mmRemoting 的帮助真是简陋,研究他的Remoting帮助半天也没找到如何捕获Remoting和后台无法连接的错误。最后还是通过原来1.0版的NetService类的方式,琢磨出来了,代码如下:
var pc:PendingCall = service.method(argu);
pc.responder = new RelayResponder(obj, "onOK", "onFault");
service.connection.onStatus=function(info){
if(info.code!="success"){
// trace("无法连接后台");
}
}
他的onFault一般是用来处理后台抛出的异常用的。
0
评论
Comments
日志分类
首页
[10]
Actionscript
[8]
Remoting
[1]
RIA 动态&随想
[0]
HTML/JS/CSS
[1]