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...
com.adobe.livecycle.rca.token 

IAsyncToken  - AS3 Review, Commenting, and Approval

Paquetecom.adobe.livecycle.rca.token
Interfazpublic interface IAsyncToken
Implementadores RCAToken
Desfasado desde Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs use mx.rpc.AsyncToken

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Review, Commenting, and Approval 9.5
Versiones de motor de ejecución: Flash Player 9, Flash Player 10, AIR (unsupported)

Used to manage asynchronous method calls.

By using an interface for basic token operations, methods can return different types of tokens without the caller needing to know what kind of token it is.

The caller may expect the token's success or fault handlers to be called depending on the result of the method call.



Métodos públicos
 MétodoDefinido por
  
Adds a fault handler to this token.
IAsyncToken
  
Adds success and fault handlers to this token.
IAsyncToken
  
Adds a responder to this token.
IAsyncToken
  
Adds a success handler to this token.
IAsyncToken
Información sobre métodos

addFaultHandler

()método
public function addFaultHandler(fault:Function):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Review, Commenting, and Approval 9.5
Versiones de motor de ejecución: Flash Player 9, Flash Player 10, AIR (unsupported)

Adds a fault handler to this token.

Parámetros

fault:Function — The function to call on fault. Can be null, but ignoring a possible fault is not recommended unless you are certain the call cannot fail. The expected function signature is function(fault:Object).

addHandlers

()método 
public function addHandlers(success:Function, fault:Function):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Review, Commenting, and Approval 9.5
Versiones de motor de ejecución: Flash Player 9, Flash Player 10, AIR (unsupported)

Adds success and fault handlers to this token. Adding handlers is more convenient than explicitly calling addSuccessHandler() and addFaultHandler() after receiving an IToken. Instead, you can use asyncMethod().addHandlers(function(event:ResultEvent){}, function(event:FaultEvent){});

Parámetros

success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success. The expected function signature is function(data:Object).
 
fault:Function — The function to call on fault. Can be null, but ignoring a fault is not recommended unless you are certain that the call cannot fail. The expected function signature is function(fault:Object).

addResponder

()método 
public function addResponder(responder:IResponder):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Review, Commenting, and Approval 9.5
Versiones de motor de ejecución: Flash Player 9, Flash Player 10, AIR (unsupported)

Adds a responder to this token.

Parámetros

responder:IResponder — The responder to add. This responder defines a result or success handler to call on success, and a fault handler to call on fault.

addSuccessHandler

()método 
public function addSuccessHandler(success:Function):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Review, Commenting, and Approval 9.5
Versiones de motor de ejecución: Flash Player 9, Flash Player 10, AIR (unsupported)

Adds a success handler to this token.

Parámetros

success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success. The expected function signature is function(data:Object).





[ 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.