Package | com.adobe.portfolio.utils |
Class | public class NavURLLoader |
Inheritance | NavURLLoader ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Property | Defined 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 |
Method | Defined 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 |
dataBytes | property |
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.
public function get dataBytes():ByteArray
See also
dataString | property |
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.
public function get dataString():String
See also
url | property |
url:String
The URL string to be loaded. Setting this value will immediately call load.
public function get url():String
public function set url(value:String):void
NavURLLoader | () | Constructor |
public function NavURLLoader(urlString:String = null, binaryFormat:Boolean = false)
Default constructor
ParametersurlString:String (default = null )
| |
binaryFormat:Boolean (default = false )
|
dispatchEvent | () | method |
override public function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
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