An object dispatches a DataEvent object when raw data has completed
loading. There are two types of data event:
DataEvent.DATA
: dispatched for data sent or received.
DataEvent.UPLOAD_COMPLETE_DATA
: dispatched when data is sent and the
server has responded.
Static variables
staticinlineread onlyDATA:EventType<DataEvent> = "data"
Defines the value of the type
property of a data
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
data | The raw data loaded into Flash Player or Adobe AIR. |
target | The XMLSocket object receiving data. |
staticinlineread onlyUPLOAD_COMPLETE_DATA:EventType<DataEvent> = "uploadCompleteData"
Defines the value of the type
property of an uploadCompleteData
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
data | The raw data returned from the server after a successful file upload. |
target | The FileReference object receiving data after a successful upload. |
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, data:String = "")
Creates an event object that contains information about data events. Event objects are passed as parameters to event listeners.
Parameters:
type | The type of the event. Event listeners can access
this information through the inherited |
---|---|
bubbles | Determines whether the Event object participates in
the bubbling phase of the event flow. Event
listeners can access this information through the
inherited |
cancelable | Determines whether the Event object can be canceled.
Event listeners can access this information through
the inherited |
data | The raw data loaded into Flash Player or Adobe AIR.
Event listeners can access this information through
the |