Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.rpc 

AsyncResponder  - AS3 Flex

Paquetemx.rpc
Clasepublic class AsyncResponder
HerenciaAsyncResponder Inheritance 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

This class provides an RPC specific implementation of 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
 PropiedadDefinido por
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
Métodos públicos
 MétodoDefinido por
  
AsyncResponder(result:Function, fault:Function, token:Object = null)
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
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
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
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
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ámetros
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.
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.





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.