Packageqnx.events
Classpublic class NetworkResourceRequestedEvent
InheritanceNetworkResourceRequestedEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a NetworkResourceRequestedEvent object when a network resource is being requested. The URL of the resource is in the url property of the event.

There is only one type of NetworkResourceRequestedEvent:

See also

QNXStageWebView


Public Properties
 PropertyDefined By
  action : String
Determines the url of the resource to be loaded.
NetworkResourceRequestedEvent
  streamId : int
Determines the ID of the resource to be loaded.
NetworkResourceRequestedEvent
  targetType : String
Determines the target of the resource to be loaded.
NetworkResourceRequestedEvent
  url : String
Determines the url of the resource to be loaded.
NetworkResourceRequestedEvent
Public Methods
 MethodDefined By
  
NetworkResourceRequestedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, url:String = null, action:String, targetType:String)
Creates a NetworkResourceRequestedEvent object.
NetworkResourceRequestedEvent
  
clone():Event
[override] Duplicates an instance of an Event subclass.
NetworkResourceRequestedEvent
  
toString():String
[override] Returns a String that contains all the properties of the NetworkResourceRequestedEvent object.
NetworkResourceRequestedEvent
Public Constants
 ConstantDefined By
  ACTION_ACCEPT : String = accept
[static]
NetworkResourceRequestedEvent
  ACTION_DENY : String = deny
[static]
NetworkResourceRequestedEvent
  ACTION_FILTER : String = filter
[static]
NetworkResourceRequestedEvent
  ACTION_SUBSTITUTE : String = substitute
[static]
NetworkResourceRequestedEvent
  NETWORK_RESOURCE_REQUESTED : String = networkResourceRequested
[static] Dispatched when a network resource is requested.
NetworkResourceRequestedEvent
  TARGET_IS_FONT_RESOURCE : String = targetIsFontResource
[static]
NetworkResourceRequestedEvent
  TARGET_IS_IMAGE : String = targetIsImage
[static]
NetworkResourceRequestedEvent
  TARGET_IS_MAIN_FRAME : String = targetIsMainFrame
[static]
NetworkResourceRequestedEvent
  TARGET_IS_MEDIA : String = targetIsMedia
[static]
NetworkResourceRequestedEvent
  TARGET_IS_OBJECT : String = targetIsObject
[static]
NetworkResourceRequestedEvent
  TARGET_IS_SCRIPT : String = targetIsScript
[static]
NetworkResourceRequestedEvent
  TARGET_IS_SHARED_WORKER : String = targetIsSharedWorker
[static]
NetworkResourceRequestedEvent
  TARGET_IS_STYLE_SHEET : String = targetIsStyleSheet
[static]
NetworkResourceRequestedEvent
  TARGET_IS_SUBFRAME : String = targetIsSubframe
[static]
NetworkResourceRequestedEvent
  TARGET_IS_SUBRESOURCE : String = targetIsSubresource
[static]
NetworkResourceRequestedEvent
  TARGET_IS_UNKNOWN : String = targetIsUnknown
[static]
NetworkResourceRequestedEvent
  TARGET_IS_WORKER : String = targetIsWorker
[static]
NetworkResourceRequestedEvent
  TARGET_IS_XML_HTTP_REQUEST : String = targetIsXMLHTTPRequest
[static]
NetworkResourceRequestedEvent
Property Detail
actionproperty
action:String

Determines the url of the resource to be loaded.


Implementation
    public function get action():String
    public function set action(value:String):void
streamIdproperty 
streamId:int

Determines the ID of the resource to be loaded.


Implementation
    public function get streamId():int
    public function set streamId(value:int):void
targetTypeproperty 
targetType:String

Determines the target of the resource to be loaded.


Implementation
    public function get targetType():String
    public function set targetType(value:String):void
urlproperty 
url:String

Determines the url of the resource to be loaded.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
NetworkResourceRequestedEvent()Constructor
public function NetworkResourceRequestedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, url:String = null, action:String, targetType:String)

Creates a NetworkResourceRequestedEvent object.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = true)
 
streamId:int (default = 0)
 
url:String (default = null)
 
action:String (default = NaN)
 
targetType:String (default = NaN)
Method Detail
clone()method
override public function clone():Event

Duplicates 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.

Returns
Event
toString()method 
override public function toString():String

Returns a String that contains all the properties of the NetworkResourceRequestedEvent object. The string is in the following format:

[NetworkResourceRequestedEvent type=value bubbles=value cancelable=value eventPhase=value streamId=value url=value action=value targetType=value]

Returns
String
Constant Detail
ACTION_ACCEPTConstant
public static const ACTION_ACCEPT:String = accept

ACTION_DENYConstant 
public static const ACTION_DENY:String = deny

ACTION_FILTERConstant 
public static const ACTION_FILTER:String = filter

ACTION_SUBSTITUTEConstant 
public static const ACTION_SUBSTITUTE:String = substitute

NETWORK_RESOURCE_REQUESTEDConstant 
public static const NETWORK_RESOURCE_REQUESTED:String = networkResourceRequested

Dispatched when a network resource is requested. The URL of the resource is contained in the url property of the event.

Specify the action you wish to take for this resource:

TARGET_IS_FONT_RESOURCEConstant 
public static const TARGET_IS_FONT_RESOURCE:String = targetIsFontResource

TARGET_IS_IMAGEConstant 
public static const TARGET_IS_IMAGE:String = targetIsImage

TARGET_IS_MAIN_FRAMEConstant 
public static const TARGET_IS_MAIN_FRAME:String = targetIsMainFrame

TARGET_IS_MEDIAConstant 
public static const TARGET_IS_MEDIA:String = targetIsMedia

TARGET_IS_OBJECTConstant 
public static const TARGET_IS_OBJECT:String = targetIsObject

TARGET_IS_SCRIPTConstant 
public static const TARGET_IS_SCRIPT:String = targetIsScript

TARGET_IS_SHARED_WORKERConstant 
public static const TARGET_IS_SHARED_WORKER:String = targetIsSharedWorker

TARGET_IS_STYLE_SHEETConstant 
public static const TARGET_IS_STYLE_SHEET:String = targetIsStyleSheet

TARGET_IS_SUBFRAMEConstant 
public static const TARGET_IS_SUBFRAME:String = targetIsSubframe

TARGET_IS_SUBRESOURCEConstant 
public static const TARGET_IS_SUBRESOURCE:String = targetIsSubresource

TARGET_IS_UNKNOWNConstant 
public static const TARGET_IS_UNKNOWN:String = targetIsUnknown

TARGET_IS_WORKERConstant 
public static const TARGET_IS_WORKER:String = targetIsWorker

TARGET_IS_XML_HTTP_REQUESTConstant 
public static const TARGET_IS_XML_HTTP_REQUEST:String = targetIsXMLHTTPRequest