Guide de référence ActionScript® 3.0 pour la plate-forme Adobe® Flash®
Accueil  |  Masquer la liste des packages et des classes |  Packages  |  Classes  |  Nouveautés  |  Index  |  Annexes  |  Pourquoi existe-t-il du contenu en anglais ?
Filtres : Récupération des données du serveur...
Récupération des données du serveur...
com.adobe.gravity.utility.async 

Token  - AS3 ADEP Client Component

Packagecom.adobe.gravity.utility.async
Classepublic class Token
HéritageToken Inheritance Object
Implémente IToken

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Token objects are returned from functions that initiate asynchronous operations. You are guaranteed that either the fault handlers or the success handlers will be invoked, depending on whether the operation succeeded or failed. Return values should always be of type IToken, the caller should not need to be aware what sort of IToken was used.

Success handlers take an arbitrary number of parameters. The number and type of the parameters depend on the API that returns the token; the API documentation will generally indicate what to expect. Fault handlers must take a single parameter of type Error.



Propriétés publiques
 PropriétéDéfini par
 Inheritedconstructor : Object
Référence à l’objet de classe ou à la fonction constructeur d’une occurrence donnée d’un objet.
Object
Méthodes publiques
 MéthodeDéfini par
  
Constructor.
Token
  
addFaultHandler(handler:Function, weakReference:Boolean = false):void
Add a handler to be called if the operation fails.
Token
  
addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Add a handler to be called if the operation succeeds.
Token
  
Call all the fault handlers with the provided error object.
Token
  
Call all the fault handlers with an Error created from the provided ErrorEvent object.
Token
  
Call all the success handlers with the provided parameters.
Token
 Inherited
Indique si la propriété spécifiée d’un objet est définie.
Object
 Inherited
Indique si une occurrence de la classe Object figure dans la chaîne de prototype de l’objet spécifié en tant que paramètre.
Object
 Inherited
Indique si la propriété spécifiée existe et est énumérable.
Object
  
Remove a fault handler.
Token
  
Remove a success handler.
Token
 Inherited
Définit la disponibilité d’une propriété dynamique pour les opérations en boucle.
Object
 Inherited
Renvoie la représentation de chaîne de cet objet, formatée selon les paramètres régionaux en vigueur.
Object
 Inherited
Renvoie la représentation sous forme de chaîne de l’objet spécifié.
Object
 Inherited
Renvoie la valeur primitive de l’objet spécifié.
Object
Détails du constructeur

Token

()Constructeur
public function Token()

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Constructor.

Détails de la méthode

addFaultHandler

()méthode
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Add a handler to be called if the operation fails.

Paramètres

handler:Function — A function to be called if the operation fails.
 
weakReference:Boolean (default = false) — Use a weak reference to hold onto the handler.

addSuccessHandler

()méthode 
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Add a handler to be called if the operation succeeds.

Paramètres

handler:Function — A function to be called if the operation succeeds.
 
weakReference:Boolean (default = false) — Use a weak reference to hold onto the handler.

callFaultHandlers

()méthode 
public function callFaultHandlers(error:Error):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Call all the fault handlers with the provided error object.

Paramètres

error:Error — The error object.

callFaultHandlersViaErrorEvent

()méthode 
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Call all the fault handlers with an Error created from the provided ErrorEvent object. This is equivalent to

         callFaultHandlers(new Error(errorEvent.text));
         

Paramètres

errorEvent:ErrorEvent — The error event.

callSuccessHandlers

()méthode 
public function callSuccessHandlers(... params):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Call all the success handlers with the provided parameters.

Paramètres

... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.

removeFaultHandler

()méthode 
public function removeFaultHandler(handler:Function):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Remove a fault handler.

Paramètres

handler:Function — The handler to be removed.

removeSuccessHandler

()méthode 
public function removeSuccessHandler(handler:Function):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Versions du moteur d’exécution: AIR 1.1, Flash Player 9

Remove a success handler.

Paramètres

handler:Function — The handler to remove.





[ X ]Pourquoi existe-t-il du contenu en anglais ?
Certaines parties du Guide de référence ActionScript 3.0 sont en anglais

Tout le contenu du Guide de référence ActionScript 3.0 n’a pas été traduit dans toutes les langues. Si un élément de langage n’est pas traduit, il s’affiche en anglais. Par exemple, la classe ga.controls.HelpBox n’est traduite dans aucune langue. Ainsi, dans la version française du guide de référence, la classe ga.controls.HelpBox apparaît en anglais.