| Pacchetto | mx.rpc |
| Classe | public dynamic class AsyncToken |
| Ereditarietà | AsyncToken EventDispatcher Object |
| Sottoclassi | CacheToken, ItemReference, RCAToken |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
ResultEvent and
FaultEvent from the token property.
| Proprietà | Definito da | ||
|---|---|---|---|
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
| message : IMessage [sola lettura]
Provides access to the associated message. | AsyncToken | ||
| responders : Array [sola lettura]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | ||
| result : Object [sola lettura]
The result that was returned by the associated RPC call. | AsyncToken | ||
| Metodo | Definito da | ||
|---|---|---|---|
AsyncToken(message:IMessage = null)
Constructs an instance of the token with the specified message. | AsyncToken | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | EventDispatcher | |
Adds a responder to an Array of responders. | AsyncToken | ||
![]() |
Invia un evento nel flusso di eventi. | EventDispatcher | |
![]() |
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | ||
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
![]() |
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher | |
| Evento | Riepilogo | Definito da | ||
|---|---|---|---|---|
![]() | [evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR ottiene lo stato di attivazione del sistema operativo ed entra nello stato attivo. | EventDispatcher | ||
![]() | [evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR perde l'attivazione del sistema operativo e sta entrando nello stato inattivo. | EventDispatcher | ||
| Dispatched when a property of the channel set changes. | AsyncToken | |||
message | proprietà |
responders | proprietà |
responders:Array [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
An array of IResponder handlers that will be called when
the asynchronous request completes.
Eaxh responder assigned to the token will have its result
or fault function called passing in the
matching event before the operation or service dispatches the
event itself.
A developer can prevent the service from subsequently dispatching the
event by calling event.preventDefault().
Note that this will not prevent the service or operation's
result property from being assigned.
Implementazione
public function get responders():Arrayresult | proprietà |
result:Object [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The result that was returned by the associated RPC call. Once the result property on the token has been assigned it will be strictly equal to the result property on the associated ResultEvent.
Questa proprietà può essere utilizzata come origine per l’associazione di dati. Quando questa proprietà viene modificata, invia l’evento propertyChange .
Implementazione
public function get result():ObjectAsyncToken | () | Funzione di costruzione |
public function AsyncToken(message:IMessage = null)| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructs an instance of the token with the specified message.
Parametrimessage:IMessage (default = null) — The message with which the token is associated.
|
addResponder | () | metodo |
public function addResponder(responder:IResponder):void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Adds a responder to an Array of responders.
The object assigned to the responder parameter must implement
mx.rpc.IResponder.
Parametri
responder:IResponder — A handler which will be called when the asynchronous request completes.
|
Elementi API correlati
hasResponder | () | metodo |
propertyChange | Evento |
mx.events.PropertyChangeEventproprietà PropertyChangeEvent.type =
mx.events.PropertyChangeEvent.PROPERTY_CHANGE| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Dispatched when a property of the channel set changes.
ThePropertyChangeEvent.PROPERTY_CHANGE constant defines the value of the
type property of the event object for a PropertyChange event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | Determined by the constructor; defaults to false. |
cancelable | Determined by the constructor; defaults to false. |
kind | The kind of change; PropertyChangeEventKind.UPDATE or PropertyChangeEventKind.DELETE. |
oldValue | The original property value. |
newValue | The new property value, if any. |
property | The property that changed. |
source | The object that contains the property that changed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate