随笔 - 8  文章 - 55  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

朋友的Blog

最新评论

阅读排行榜

评论排行榜

連接Flash Remoting Gateway的Exception Handling (15-08-2003)
在連接Remote Services時,_Status可以處理任何連接失敗(Exception Handling)等情況,但開始任何連接Remote Services工作前,必須先連接Flash Remoting Gateway,這過程有沒有Exception Handling能力?例如知道連接Gateway失敗?答案是可以的:

NetServices.setDefaultGatewayUrl("http://localhost/
flashremoting/gateway.aspx");
gatewayConnection=NetServices.createGatewayConnection();
gatewayConnection.onStatus = function(info_obj) {
    if (info_obj.code == "NetConnection.Call.Failed") {
      trace("Gateway is down.");
    }
};
本文章由 luar 發表
posted on 2006-06-07 09:51 blog搬家了--[www.ialway.com/blog] 阅读(320) 评论(0)  编辑  收藏 所属分类: Flash组件Flash Remoting

只有注册用户登录后才能发表评论。


网站导航: