| Package | qnx.events |
| Class | public class WebDownloadErrorEvent |
| Inheritance | WebDownloadErrorEvent flash.events.Event |
There is only one type of WebDownloadErrorEvent:
WebDownloadErrorEvent.DOWNLOAD_ERROR: dispatched when a download has an error. Cannot be cancelled.See also
| Property | Defined By | ||
|---|---|---|---|
| downloadId : uint
The identifier of the download. | WebDownloadErrorEvent | ||
| error : String
The error code. | WebDownloadErrorEvent | ||
| Method | Defined By | ||
|---|---|---|---|
WebDownloadErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, error:String)
Creates a WebDownloadErrorEvent object. | WebDownloadErrorEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | WebDownloadErrorEvent | ||
toString():String [override]
Returns a string that contains all the properties of the WebDownloadErrorEvent object. | WebDownloadErrorEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| DOWNLOAD_ERROR : String = downloadError [static]
Signals that the download has ended with an error. | WebDownloadErrorEvent | ||
| DOWNLOAD_ERROR_INVALID_FILENAME : String = downloadErrorInvalidFilename [static]
| WebDownloadErrorEvent | ||
| DOWNLOAD_ERROR_NONE : String = downloadErrorNone [static]
| WebDownloadErrorEvent | ||
| downloadId | property |
downloadId:uintThe identifier of the download.
public function get downloadId():uint public function set downloadId(value:uint):void| error | property |
error:StringThe error code.
public function get error():String public function set error(value:String):void| WebDownloadErrorEvent | () | Constructor |
public function WebDownloadErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, error:String)
Creates a WebDownloadErrorEvent object.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
downloadId:uint (default = 0) | |
error:String |
| clone | () | method |
override public function clone():EventDuplicates an instance of an Event subclass.
Returns a new Event object that is a copy of the original instance of the Event object.
You do not normally call clone(); the EventDispatcher class calls it automatically
when you redispatch an event—that is, when you call dispatchEvent(event) from a handler
that is handling event.
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
inherited Event.clone() method in order for it to duplicate the
properties of your custom class. If you do not set all the properties that you add
in your event subclass, those properties will not have the correct values when listeners
handle the redispatched event.
Event |
| toString | () | method |
override public function toString():String
Returns a string that contains all the properties of the WebDownloadErrorEvent object.
The string is in the following format:
[WebDownloadErrorEvent type=value bubbles=value
cancelable=value eventPhase=value downloadId=value
error=value
String |
| DOWNLOAD_ERROR | Constant |
public static const DOWNLOAD_ERROR:String = downloadErrorSignals that the download has ended with an error.
| DOWNLOAD_ERROR_INVALID_FILENAME | Constant |
public static const DOWNLOAD_ERROR_INVALID_FILENAME:String = downloadErrorInvalidFilename
| DOWNLOAD_ERROR_NONE | Constant |
public static const DOWNLOAD_ERROR_NONE:String = downloadErrorNone