Packageorg.apache.flex.net
Classpublic class URLStream
InheritanceURLStream Inheritance EventDispatcher Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  bytesLoaded : uint = 0
The number of bytes loaded so far.
URLStream
  bytesTotal : uint = 0
The total number of bytes (if avaailable).
URLStream
  endian : String = bigEndian
Indicates the byte order for the data.
URLStream
  onComplete : Function
Callback for complete event.
URLStream
  onError : Function
Callback for error event.
URLStream
  onProgress : Function
Callback for progress event.
URLStream
  onStatus : Function
Callback for status event.
URLStream
  requestStatus : int = 0
Indicates the status of the request.
URLStream
  response : BinaryData
[read-only]
URLStream
Public Methods
 MethodDefined By
  
URLStream
  
close():void
URLStream
  
complete(callback:Function):URLStream
Convenience function for complete event to allow chaining.
URLStream
  
error(callback:Function):URLStream
Convenience function for error event to allow chaining.
URLStream
  
load(urlRequest:URLRequest):void
URLStream
  
progress(callback:Function):URLStream
Convenience function for progress event to allow chaining.
URLStream
  
status(callback:Function):URLStream
Convenience function for status event to allow chaining.
URLStream
Protected Methods
 MethodDefined By
  
flash_complete(event:Event):void
URLStream
  
flash_onIoError(event:IOErrorEvent):void
URLStream
  
flash_progress(ev:ProgressEvent):void
URLStream
Property Detail
bytesLoadedproperty
public var bytesLoaded:uint = 0

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The number of bytes loaded so far.

bytesTotalproperty 
public var bytesTotal:uint = 0

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The total number of bytes (if avaailable).

endianproperty 
public var endian:String = bigEndian

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Indicates the byte order for the data.

onCompleteproperty 
public var onComplete:Function

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Callback for complete event.

onErrorproperty 
public var onError:Function

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Callback for error event.

onProgressproperty 
public var onProgress:Function

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Callback for progress event.

onStatusproperty 
public var onStatus:Function

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Callback for status event.

requestStatusproperty 
public var requestStatus:int = 0

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Indicates the status of the request.

responseproperty 
response:BinaryData  [read-only]


Implementation
    public function get response():BinaryData
Constructor Detail
URLStream()Constructor
public function URLStream()



Method Detail
close()method
public function close():void

complete()method 
public function complete(callback:Function):URLStream

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Convenience function for complete event to allow chaining.

Parameters

callback:Function

Returns
URLStream
error()method 
public function error(callback:Function):URLStream

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Convenience function for error event to allow chaining.

Parameters

callback:Function

Returns
URLStream
flash_complete()method 
protected function flash_complete(event:Event):void

Parameters

event:Event

flash_onIoError()method 
protected function flash_onIoError(event:IOErrorEvent):void

Parameters

event:IOErrorEvent

flash_progress()method 
protected function flash_progress(ev:ProgressEvent):void

Parameters

ev:ProgressEvent

load()method 
public function load(urlRequest:URLRequest):void

Parameters

urlRequest:URLRequest

progress()method 
public function progress(callback:Function):URLStream

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Convenience function for progress event to allow chaining.

Parameters

callback:Function

Returns
URLStream
status()method 
public function status(callback:Function):URLStream

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Convenience function for status event to allow chaining.

Parameters

callback:Function

Returns
URLStream