Packagecom.adobe.portfolio.utils
Classpublic class NavURLLoader
InheritanceNavURLLoader Inheritance flash.net.URLLoader

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The NavURLLoader class extends URLLoader to provide URL loading for Navigators.



Public Properties
 PropertyDefined By
  dataBytes : ByteArray
[read-only] A ByteArray representing the bytes loaded from the URL.
NavURLLoader
  dataString : String
[read-only] A String representing the text loaded from the URL.
NavURLLoader
  url : String
The URL string to be loaded.
NavURLLoader
Public Methods
 MethodDefined By
  
NavURLLoader(urlString:String = null, binaryFormat:Boolean = false)
Default constructor
NavURLLoader
  
dispatchEvent(event:Event):Boolean
[override]
NavURLLoader
  
load(request:URLRequest):void
[override]
NavURLLoader
  
write(buffer:ByteArray, response:Function = null):void
Writes the given bytes into the resource file referenced by this loader.
NavURLLoader
Property Detail
dataBytesproperty
dataBytes:ByteArray  [read-only]

A ByteArray representing the bytes loaded from the URL. This value is only updated for binary requests.

This property can be used as the source for data binding.


Implementation
    public function get dataBytes():ByteArray

See also

URLLoader.dataFormat
dataStringproperty 
dataString:String  [read-only]

A String representing the text loaded from the URL. This value is only updated for text requests.

This property can be used as the source for data binding.


Implementation
    public function get dataString():String

See also

URLLoader.dataFormat
urlproperty 
url:String

The URL string to be loaded. Setting this value will immediately call load.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
NavURLLoader()Constructor
public function NavURLLoader(urlString:String = null, binaryFormat:Boolean = false)

Default constructor

Parameters
urlString:String (default = null)
 
binaryFormat:Boolean (default = false)
Method Detail
dispatchEvent()method
override public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
load()method 
override public function load(request:URLRequest):void

Parameters

request:URLRequest

write()method 
public function write(buffer:ByteArray, response:Function = null):void

Writes the given bytes into the resource file referenced by this loader. dataBytes and dataString are updated immediately with the new data. The response function will be called as described by the ICollection intefaces, and load is also triggered so that any event listeners present will be called appropriately.

Parameters

buffer:ByteArray
 
response:Function (default = null)

See also

ICollection.writeResource