Paquete | mx.rpc |
Clase | public class AsyncResponder |
Herencia | AsyncResponder Object |
Implementa | IResponder |
Subclases | AsyncTokenResponder |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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.
Propiedades públicas
Métodos públicos
Método | Definido por | ||
---|---|---|---|
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 | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
This method is called by a service when the return value has been
received. | AsyncResponder | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object |
Información sobre constructores
AsyncResponder | () | Información sobre |
public function AsyncResponder(result:Function, fault:Function, token:Object = null)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructs an instance of the responder with the specified data and handlers.
Parámetrosresult: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.
|
Información sobre métodos
fault | () | método |
public function fault(info:Object):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
This method is called by a service when an error has been received.
Parámetros
info:Object — Object containing the information about the error that
occured.
|
result | () | método |
public function result(data:Object):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
This method is called by a service when the return value has been received.
Parámetros
data:Object — Object containing the information returned from the request.
|
Tue Jun 12 2018, 02:12 PM Z