Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
URLStream

Package | org.apache.flex.net
Class | public class URLStream
Inheritance | URLStream EventDispatcher flash.events.EventDispatcher

Public Properties

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | URLStream() | 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

| Method | Defined By
--- | --- | ---
|  | flash_complete(event:Event):void | URLStream
|  | flash_onIoError(event:IOErrorEvent):void | URLStream
|  | flash_progress(ev:ProgressEvent):void | URLStream

Property Detail

bytesLoaded | property

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

bytesTotal | property |

`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).

endian | property |

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

onComplete | property |

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

onError | property |

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

onProgress | property |

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

onStatus | property |

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

requestStatus | property |

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

response | property |

`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`

Mon Sep 5 2016, 07:19 AM -07:00