套件 | mx.rpc |
類別 | public class AsyncResponder |
繼承 | AsyncResponder Object |
實作 | IResponder |
子類別 | AsyncTokenResponder |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
mx.rpc.IResponder
.
It allows the creator to associate data (a token) and methods that should be
called when a request is completed.
The result method specified must have the following signature:
public function myResultFunction(result:Object, token:Object = null):void;
The fault method specified must have the following signature:
public function myFaultFunction(error:Object, token:Object = null):void;
Any other signature will result in a runtime error.
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructs an instance of the responder with the specified data and
handlers. | AsyncResponder | ||
This method is called by a service when an error has been received. | AsyncResponder | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
This method is called by a service when the return value has been
received. | AsyncResponder | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
建構函式詳細資料
AsyncResponder | () | 建構函式 |
public function AsyncResponder(result:Function, fault:Function, token:Object = null)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs an instance of the responder with the specified data and handlers.
參數result:Function — Function that should be called when the request has
completed successfully.
Must have the following signature:
public function (result:Object, token:Object = null):void; | |
fault:Function — Function that should be called when the request has
completed with errors.
Must have the following signature:
public function (error:FaultEvent, token:Object = null):void; | |
token:Object (default = null ) — Additional information to associate with
this request.
|
方法詳細資訊
fault | () | 方法 |
result | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z