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

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

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The BinaryUploader class is a relatively low-level class designed to get binary data over HTTP the intent is to create similar classes for text and URL vars.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | bytesLoaded : uint = 0 The number of bytes loaded so far. | URLBinaryLoader
|  | bytesTotal : uint = 0 The total number of bytes (if avaailable). | URLBinaryLoader
|  | data : BinaryData The binary result of the request. | URLBinaryLoader
|  | endian : String = bigEndian Indicates the byte order for the data. | URLBinaryLoader
|  | onComplete : Function Callback for complete event. | URLLoader
|  | onError : Function Callback for error event. | URLLoader
|  | onProgress : Function Callback for progress event. | URLLoader
|  | onStatus : Function Callback for status event. | URLLoader
|  | requestStatus : int The status of the request. | URLLoader

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | URLBinaryLoader() | URLBinaryLoader
|  | close():void Cancels the URL request | URLBinaryLoader
|  | complete(callback:Function):URLLoader Convenience function for complete event to allow chaining. | URLLoader
|  | error(callback:Function):URLLoader Convenience function for error event to allow chaining. | URLLoader
|  | load(request:URLRequest):void Makes the URL request. | URLBinaryLoader
|  | progress(callback:Function):URLLoader Convenience function for progress event to allow chaining. | URLLoader
|  | status(callback:Function):URLLoader Convenience function for status event to allow chaining. | URLLoader

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | cleanupCallbacks():void | URLLoader

Events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | communicationError | Dispatched if an error occurs in the server communication. | URLLoader
|  | complete | Dispatched when the request is complete. | URLLoader
|  | httpStatus | Dispatched when an httpStatus code is received from the server. | URLLoader

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

data | property |

`public var data:BinaryData`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The binary result of the request.

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.

Constructor Detail

URLBinaryLoader | () | Constructor

`public function URLBinaryLoader()`

Method Detail

close | () | method

`public function close():void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Cancels the URL request

load | () | method |

`public function load(request:URLRequest):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Makes the URL request.

Parameters

| `request:URLRequest`

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