Packagecom.adobe.csxs.events
Classpublic class AsyncRequestEvent
InheritanceAsyncRequestEvent Inheritance flash.events.Event

This event is dispatched when an asynchoronous request is completed. The event contains the result of the request, and a token that can be used to distinguish among different requests.



Public Properties
 PropertyDefined by
  data : *
The data associated with the event; for example, the authentication token returned by an authentication request.
AsyncRequestEvent
  token : String
Retrieves the request token that identifies the specific request for which this event was dispatched.
AsyncRequestEvent
Public Methods
 MethodDefined by
  
AsyncRequestEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates the event object.
AsyncRequestEvent
  
clone():Event
Creates a copy of this object and sets the value of each property to match that of the original.
AsyncRequestEvent
  
toString():String
Creates a string that contains all the properties of this object, in this format:

[AsyncRequestEvent type=value bubbles=value cancelable=value ...

AsyncRequestEvent
Public Constants
 ConstantDefined by
  REQUEST_COMPLETE : String = "requestComplete"
[static] The event type constant for a successfully completed request.
AsyncRequestEvent
  REQUEST_FAILED : String = "requestFailed"
[static] The event type constant for a failed request.
AsyncRequestEvent
Property detail
dataproperty
data:*  [read-write]

The data associated with the event; for example, the authentication token returned by an authentication request.

Implementation
    public function get data():*
    public function set data(value:*):void
tokenproperty 
token:String  [read-write]

Retrieves the request token that identifies the specific request for which this event was dispatched.

Implementation
    public function get token():String
    public function set token(value:String):void
Constructor detail
AsyncRequestEvent()constructor
public function AsyncRequestEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates the event object.

Parameters
type:String — The request completion status, "requestComplete" or "requestFailed".
 
bubbles:Boolean (default = false) — True to allow propagation of this event.
 
cancelable:Boolean (default = false) — True if the behavior associated with the event can be prevented.
Method detail
clone()method
public override function clone():Event

Creates a copy of this object and sets the value of each property to match that of the original.

Returns
Event — The new object.
toString()method 
public override function toString():String

Creates a string that contains all the properties of this object, in this format:

[AsyncRequestEvent type=value bubbles=value cancelable=value ... delta=value]

Returns
String — The properties string.
Constant detail
REQUEST_COMPLETEconstant
public static const REQUEST_COMPLETE:String = "requestComplete"

The event type constant for a successfully completed request.

REQUEST_FAILEDconstant 
public static const REQUEST_FAILED:String = "requestFailed"

The event type constant for a failed request.