| Package | org.springextensions.actionscript.core.io.support |
| SVN browsing | LoadURLOperation.as |
| Fisheye | LoadURLOperation.as |
| Class | public class LoadURLOperation |
| Inheritance | LoadURLOperation AbstractProgressOperation AbstractOperation flash.events.EventDispatcher |
IOperation implementation that can load arbitrary data from a specified URL.
Documentation reference: operations
| Property | Defined by | ||
|---|---|---|---|
| urlLoader : URLLoader
Internal
URLLoader instance that is used to do the actual loading of the data. | LoadURLOperation | ||
| Method | Defined by | ||
|---|---|---|---|
|
LoadURLOperation(url:String, dataFormat:String = null)
Creates a new
LoadURLOperation instance. | LoadURLOperation | ||
![]() |
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
| AbstractOperation | |
![]() |
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a
OperationEvent.COMPLETE event. | AbstractOperation | |
![]() |
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a
OperationEvent.ERROR event. | AbstractOperation | |
![]() |
dispatchTimeoutEvent():Boolean
Convenience method for dispatching a
OperationEvent.TIMEOUT event. | AbstractOperation | |
![]() |
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
| AbstractOperation | |
| Method | Defined by | ||
|---|---|---|---|
|
completeHandler(event:Event):void
Handles the
Event.COMPLETE event of the internally created URLLoader. | LoadURLOperation | ||
![]() |
dispatchProgressEvent():void
Convenience method for dispatching a
OperationEvent.PROGRESS event. | AbstractProgressOperation | |
|
errorHandler(event:Event):void
Handles the
SecurityErrorEvent.SECURITY_ERROR and IOErrorEvent.IO_ERROR events of the internally created URLLoader. | LoadURLOperation | ||
|
init(url:String, dataFormat:String = "text"):void
Initializes the
LoadURLOperation instance. | LoadURLOperation | ||
|
progressHandler(event:ProgressEvent):void
Handles the
ProgressEvent.PROGRESS event of the internally created URLLoader. | LoadURLOperation | ||
|
removeEventListeners():void
Removes all the registered event handlers from the internally created
URLLoader and
sets itr to null afterwards. | LoadURLOperation | ||
![]() |
startTimeout():void
| AbstractOperation | |
| urlLoader | property |
protected var urlLoader:URLLoader
Internal URLLoader instance that is used to do the actual loading of the data.
| LoadURLOperation | () | constructor |
public function LoadURLOperation(url:String, dataFormat:String = null)
Creates a new LoadURLOperation instance.
url:String — The specified URL from which the data will be loaded.
|
|
dataFormat:String (default = null) — Optional argument that specifies the data format of the expected data. Use the flash.net.URLLoaderDataFormat enumeration for this.
|
See also
| completeHandler | () | method |
protected function completeHandler(event:Event):void
Handles the Event.COMPLETE event of the internally created URLLoader.
event:Event — The specified Event.COMPLETE event.
|
| errorHandler | () | method |
protected function errorHandler(event:Event):void
Handles the SecurityErrorEvent.SECURITY_ERROR and IOErrorEvent.IO_ERROR events of the internally created URLLoader.
event:Event — The specified ProgressEvent.PROGRESS or IOErrorEvent.IO_ERROR event.
|
| init | () | method |
protected function init(url:String, dataFormat:String = "text"):void
Initializes the LoadURLOperation instance.
url:String — The specified URL from which the data will be loaded.
|
|
dataFormat:String (default = "text") — Optional argument that specifies the data format of the expected data. Use the flash.net.URLLoaderDataFormat enumeration for this. Default is "text".
|
See also
| progressHandler | () | method |
protected function progressHandler(event:ProgressEvent):void
Handles the ProgressEvent.PROGRESS event of the internally created URLLoader.
event:ProgressEvent — The specified ProgressEvent.PROGRESS event.
|
| removeEventListeners | () | method |
protected function removeEventListeners():void
Removes all the registered event handlers from the internally created URLLoader and
sets itr to null afterwards.