An object dispatches an AsyncErrorEvent when an exception is thrown from native asynchronous code, which could be from, for example, LocalConnection, NetConnection, SharedObject, or NetStream. There is only one type of asynchronous error event: AsyncErrorEvent.ASYNC_ERROR.


Inherited from ErrorEvent


Can be created using method new:

Lib.Media.Events.AsyncErrorEvent.new(type, bubbles, cancelable, text, error)

Creates an AsyncErrorEvent object that contains information about asyncError events.

type - The type of the event. Event listeners can access this information through the inherited type property. There is only one type of error event: ErrorEvent.ERROR.

bubbles - (default = false) - Determines whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.

cancelable - (default = false) - Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.

text - (default = "") - Text to be displayed as an error message. Event listeners can access this information through the text property. 

error - (default = nil) - The exception that occurred. If error is non-nil, the event's errorId property is set from the error's errorId property. (not supported, use nil)


Created AsyncErrorEvent object has properties:

error

The exception that was thrown.


methods:

clone()

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


toString()

Returns a string that contains all the properties of the AsyncErrorEvent object.



event types:

Lib.Media.Events.AsyncErrorEvent.ASYNC_ERROR

The AsyncErrorEvent.ASYNC_ERROR constant defines the value of the type property of an asyncError event object.

Created with the Personal Edition of HelpNDoc: Easily create EPub books