Paquete | com.adobe.icc.token |
Interfaz | public interface IAsyncToken |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
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. Handlers will be called in the order in which they were added.
Propiedad | Definido por | ||
---|---|---|---|
data : Object
Associates custom data to this token. | IAsyncToken | ||
operationName : String [solo lectura]
Returns the operation name associated with this token or null if an operation name was not given. | IAsyncToken |
Método | Definido por | ||
---|---|---|---|
Adds a fault handler to this token. | IAsyncToken | ||
Adds a success and a fault handler to this token. | IAsyncToken | ||
Desfasado desde 1.0: Utilice addHandlers, or addSuccessHandler/addFaultHandler
Adds a responder to this token. | IAsyncToken | ||
Adds a success handler to this token. | IAsyncToken |
data | propiedad |
data:Object
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Associates custom data to this token.
Implementación
public function get data():Object
public function set data(value:Object):void
operationName | propiedad |
operationName:String
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Returns the operation name associated with this token or null if an operation name was not given.
Implementación
public function get operationName():String
addFaultHandler | () | método |
public function addFaultHandler(fault:Function):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds a fault handler to this token.
Parámetros
fault:Function — The function to call on fault. Can be null, but it's not recommended to ignore a possible fault unless
you are certain the call will not fail. Expected function signature: 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 Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds a success and a fault handler to this token. This is a convenience over having to explicitly call addSuccessHandler()
and addFaultHandler() after receiving an IToken. With this, you can simply do
asyncMethod().addHandlers(function(event:ResultEvent){}, function(event:FaultEvent){});
Parámetros
success:Function — The function to call on success. Can be null, but it's rare you wouldn't want to know about success.
Expected function signature: function(data:Object) .
| |
fault:Function — The function to call on fault. Can be null, but it's not recommended to ignore a possible fault unless
you are certain the call will not fail. Expected function signature: 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 Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds a responder to this token. Unfortunately, this method is necessary due to the refactoring effort required in cmAdmin in order to call addHandlers (or addSuccessHandler and addFaultHandler) instead.
Parámetros
responder:IResponder — The responder to add. This defines a result (success) and a fault handler to call on success or on fault,
respectively.
|
addSuccessHandler | () | método |
public function addSuccessHandler(success:Function):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 9.5 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds a success handler to this token.
Parámetros
success:Function — The function to call on success. Can be null, but it's rare you wouldn't want to know about success.
Expected function signature: function(data:Object) .
|
Tue Jun 12 2018, 02:12 PM Z