ActionScript® 3.0 Referenzhandbuch für die Adobe® Flash®-Plattform
Home  |  Liste der Pakete und Klassen ausblenden |  Pakete  |  Klassen  |  Neue Funktionen  |  Stichwortverzeichnis  |  Anhänge  |  Warum auf Englisch?
Filter: Daten werden vom Server abgerufen...
Daten werden vom Server abgerufen...
com.adobe.icc.token 

IAsyncToken  - AS3 Asset Composer

Paketcom.adobe.icc.token
Schnittstellepublic interface IAsyncToken

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: AIR (unsupported), Flash Player 9, Flash Player 10

Used to manage asynchronous method calls. Greatly inspired from com.adobe.utility.async.IToken except that the LC Utility SWC where the original IToken is defined cannot be used due to the refactoring effort involved at this time (2010/Apr/14). If IToken is ever incorporated, this interface could be made to extend IToken to as not to require refactoring code already using IAsyncToken.

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.



Öffentliche Eigenschaften
 EigenschaftDefiniert von
  data : Object
Associates custom data to this token.
IAsyncToken
  operationName : String
[schreibgeschützt] Returns the operation name associated with this token or null if an operation name was not given.
IAsyncToken
Öffentliche Methoden
 MethodeDefiniert von
  
Adds a fault handler to this token.
IAsyncToken
  
Adds a success and a fault handler to this token.
IAsyncToken
  
Veraltet seit 1.0: Verwenden Sie addHandlers, or addSuccessHandler/addFaultHandler
Adds a responder to this token.
IAsyncToken
  
Adds a success handler to this token.
IAsyncToken
Eigenschaftendetails

data

Eigenschaft
data:Object

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: AIR (unsupported), Flash Player 9, Flash Player 10

Associates custom data to this token.



Implementierung
    public function get data():Object
    public function set data(value:Object):void

operationName

Eigenschaft 
operationName:String  [schreibgeschützt]

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: 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.



Implementierung
    public function get operationName():String
Methodendetails

addFaultHandler

()Methode
public function addFaultHandler(fault:Function):void

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: AIR (unsupported), Flash Player 9, Flash Player 10

Adds a fault handler to this token.

Parameter

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

()Methode 
public function addHandlers(success:Function, fault:Function):void

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: 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){});

Parameter

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

()Methode 
public function addResponder(responder:IResponder):void
Veraltet seit 1.0: Verwenden Sie addHandlers, or addSuccessHandler/addFaultHandler

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: 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.

Parameter

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

addSuccessHandler

()Methode 
public function addSuccessHandler(success:Function):void

Sprachversion: ActionScript 3.0
Produktversion: Baustein „Asset Composer“ 9.5
Laufzeitversionen: AIR (unsupported), Flash Player 9, Flash Player 10

Adds a success handler to this token.

Parameter

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





[ X ]Warum auf Englisch?
Inhalt des ActionScript 3.0-Referenzhandbuchs wird in englischer Sprache angezeigt

Nicht alle Teile des ActionScript 3.0-Referenzhandbuchs wurden in alle Sprachen übersetzt. Wenn der Text zu einem Sprachelement nicht übersetzt wurde, wird er auf Englisch angezeigt. Zum Beispiel wurden die Informationen zur ga.controls.HelpBox-Klasse nicht in andere Sprachen übersetzt. In der deutschen Version des Referenzhandbuchs erscheint der Abschnitt zur ga.controls.HelpBox-Klasse deshalb auf Englisch.