Luar's Flash Playground:連接Flash Remoting Gateway的Exception Handling
新聞(101)
觀點或評論(94)
Flash書(63)
教程(72)
Design Patterns(3)
FlashCom筆記(47)
Flash Remoting筆記(27)
Flex筆記(11)
Flash Lite筆記(14)
PHP資訊(23)
Ajax筆記(9)
習作(50)
組件(16)
酷站(32)
學習資源(28)
書籍推介(15)
本站與我(91)
RSS瀏覽器
聯絡
熱愛鑽研
Ajax
ActionScript
Flash
Flash Lite
Flex
Flash Remoting
FlashCom
Director
Lingo
PHP
Multiplayer Game

搜尋
VCASMO
連接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.");
    }
};
本文章由發表。
意見
  • custService = new Service("http://localhost/
    flashremoting/gateway.aspx", null, "HelloWorld", null, null);

    由Anonymous於02-08-2004發表

同組文章

Movable Type 4.32-en系統支持,Luar's Production版權所有。