| Package | qnx.events |
| Class | public class NetworkErrorEvent |
| Inheritance | NetworkErrorEvent flash.events.ErrorEvent |
QNXStageWebView dispatches a NetworkErrorEvent object when an error loading
a page from the server has failed. This is the same as the error posted when a
StageWebView has an error, except that the URL of the error is returned in addition
to the standard properties.
There is only one type of NetworkErrorEvent:
ErrorEvent.ERROR: dispatched after an asynchronous network error occurs. Cannot be cancelled.See also
| Property | Defined By | ||
|---|---|---|---|
| url : String
The URL of the file that caused the error. | NetworkErrorEvent | ||
| Method | Defined By | ||
|---|---|---|---|
NetworkErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String, id:int = 0, url:String)
Creates a NetworkErrorEvent instance. | NetworkErrorEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | NetworkErrorEvent | ||
toString():String [override]
Returns a string that contains all the properties of the NetworkErrorEvent object. | NetworkErrorEvent | ||
| url | property |
url:StringThe URL of the file that caused the error.
public function get url():String public function set url(value:String):void| NetworkErrorEvent | () | Constructor |
public function NetworkErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String, id:int = 0, url:String)
Creates a NetworkErrorEvent instance.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
text:String | |
id:int (default = 0) | |
url: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 NetworkErrorEvent object.
The string is in the following format:
[NetworkErrorEvent type=value bubbles=value
cancelable=value eventPhase=value text=value
id=value url=value
String |