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

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

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The URLLoader class is a base class for the specific flavors of loaders such as binary, text or variables

Public Properties

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

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

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

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

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`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The status of the request.

Constructor Detail

URLLoader | () | Constructor

`public function URLLoader()`

Method Detail

cleanupCallbacks | () | method

`protected function cleanupCallbacks():void`

complete | () | method |

`public function complete(callback:Function):URLLoader`

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

| `URLLoader`

error | () | method |

`public function error(callback:Function):URLLoader`

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

| `URLLoader`

progress | () | method |

`public function progress(callback:Function):URLLoader`

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

| `URLLoader`

status | () | method |

`public function status(callback:Function):URLLoader`

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

| `URLLoader`

Event Detail

communicationError | Event

Event Object Type: `org.apache.flex.events.Event`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Dispatched if an error occurs in the server communication.

complete | Event |

Event Object Type: `org.apache.flex.events.Event`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Dispatched when the request is complete.

httpStatus | Event |

Event Object Type: `org.apache.flex.events.Event`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Dispatched when an httpStatus code is received from the server.

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