Packageorg.apache.flex.net
Classpublic class URLLoader
InheritanceURLLoader Inheritance EventDispatcher Inheritance 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
 PropertyDefined 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
 MethodDefined By
  
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
 MethodDefined By
  
URLLoader
Events
 Event Summary Defined By
  Dispatched if an error occurs in the server communication.URLLoader
  Dispatched when the request is complete.URLLoader
  Dispatched when an httpStatus code is received from the server.URLLoader
Property Detail
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

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.