連接Flash Remoting Gateway的Exception Handling | (15-08-2003) |
![]() |
|
在連接Remote Services時(shí),_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 發(fā)表 |
posted on 2006-06-07 09:51 blog搬家了--[www.ialway.com/blog] 閱讀(343) 評(píng)論(0) 編輯 收藏 所屬分類: Flash組件 、Flash Remoting