ErrorEvent
An object dispatches an ErrorEvent object when an error causes an asynchronous operation to fail.
The ErrorEvent object defines only one type of error event: ErrorEvent.ERROR. The ErrorEvent object also serves as the base object for several other error event objects, including the AsyncErrorEvent, IOErrorEvent.
Inherited from TextEvent.
Can be created with method new:
Lib.Media.Events.ErrorEvent.new(type, bubbles, cancelable, text, id) |
Creates an Event object that contains information about error 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. id - (default = 0) - A reference number to associate with the specific error |
Created ErrorEvent object has properties:
errorID |
[read-only] Contains the reference number associated with the specific error. |
methods:
clone() |
Creates a copy of the ErrorEvent 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 ErrorEvent object. |
|
Event types:
Lib.Media.Events.ErrorEvent.ERROR |
Defines the value of the type property of an error event object. |
Created with the Personal Edition of HelpNDoc: iPhone web sites made easy