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

Paket com.adobe.gravity.utility.async 


Öffentliche Methoden
 FunktionDefiniert von
  
addHandlers(token:com.adobe.gravity.utility.async:IToken, successHandler:Function, faultHandler:Function, weakReference:Boolean = false):void
A convenience function for adding a success and fault handler without declaring a local variable.
com.adobe.gravity.utility.async
  
Create an adapter function that calls the provided function with the provided parameters, appending any parameters passed in when it is invoked.
com.adobe.gravity.utility.async
  
Create an adapter function that calls the provided function with the provided parameters, ignoring any parameters passed in when it is invoked.
com.adobe.gravity.utility.async
  
injector(target:Object, propertyName:String):Function
A convenience method for a success handler.
com.adobe.gravity.utility.async
Funktionsdetails

addHandlers

()Funktion
public function addHandlers(token:com.adobe.gravity.utility.async:IToken, successHandler:Function, faultHandler:Function, weakReference:Boolean = false):void

Sprachversion: ActionScript 3.0
Produktversion: Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10
Laufzeitversionen: AIR 1.1, Flash Player 9

A convenience function for adding a success and fault handler without declaring a local variable. Instead of

     var token:IToken = context.getService(reference);
     token.addSuccessHandler(successHandler);
     token.addFailureHandler(faultHandler);
     
this convenience function allows for
     addHandlers(context.getService(reference), successHandler, faultHandler);
     
Note that in many cases, code similar to the first example will be easier to read. However, elimination of the local variable can reduce potential confusion between multiple local IToken variables.

Parameter

token:com.adobe.gravity.utility.async:IToken — The token on which to add the success and fault handler.
 
successHandler:Function — The success handler.
 
faultHandler:Function — The fault handler.
 
weakReference:Boolean (default = false) — Whether to use a weak reference.

Verwandte API-Elemente

addParams

()Funktion 
public function addParams(func:Function, ... params):Function

Sprachversion: ActionScript 3.0
Produktversion: Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10
Laufzeitversionen: AIR 1.1, Flash Player 9

Create an adapter function that calls the provided function with the provided parameters, appending any parameters passed in when it is invoked. The returned adapter function will accept any number of parameters to be appended.

Parameter

func:Function — The function to adapt.
 
... params — An arbitrary number of additional parameters to be passed to the provided function when the returned adapter function is called.

Rückgabewerte
Function — A Function object that when invoked will call the provided function with any parameters passed into it appended to the list of parameters passed into the call to addParams.

fixParams

()Funktion 
public function fixParams(func:Function, ... params):Function

Sprachversion: ActionScript 3.0
Produktversion: Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10
Laufzeitversionen: AIR 1.1, Flash Player 9

Create an adapter function that calls the provided function with the provided parameters, ignoring any parameters passed in when it is invoked. The returned adapter function will accept (and ignore) any number of parameters.

Parameter

func:Function — The function to adapt.
 
... params — An arbitrary number of additional parameters to be passed to the provided function when the returned adapter function is called.

Rückgabewerte
Function — A Function object that when invoked will call the provided function with the list of parameters passed into the call to fixParams; any parameters passed to the return function will be ignored.

injector

()Funktion 
public function injector(target:Object, propertyName:String):Function

Sprachversion: ActionScript 3.0
Produktversion: Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10
Laufzeitversionen: AIR 1.1, Flash Player 9

A convenience method for a success handler. Typical usage: commandSenderToken.addSuccessHandler( injector( this, "commandSender" ) );

Parameter

target:Object — The object on which to set the property.
 
propertyName:String — The name of the property to set.

Rückgabewerte
Function — A function that takes a single object as a parameter and sets that object into the specified property of the target.

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