| Package | org.springextensions.actionscript.core.io.support |
| SVN browsing | LoadURLStreamOperation.as |
| Fisheye | LoadURLStreamOperation.as |
| Class | public class LoadURLStreamOperation |
| Inheritance | LoadURLStreamOperation AbstractProgressOperation AbstractOperation flash.events.EventDispatcher |
IOperation implementation that can load a stream from the specified URL.
| Property | Defined by | ||
|---|---|---|---|
![]() | error : *
The error of this operation or
null if no error occurred during this operation. | AbstractOperation | |
![]() | progress : uint
The progress of this operation.
| AbstractProgressOperation | |
![]() | result : *
The result of this operation or
null if the operation does not have a result. | AbstractOperation | |
![]() | timeout : int
The timeout in milliseconds.
| AbstractOperation | |
![]() | total : uint
The total amount of progress this operation should make before being done.
| AbstractProgressOperation | |
| urlStream : URLStream [read-only]
| LoadURLStreamOperation | ||
| Method | Defined by | ||
|---|---|---|---|
|
LoadURLStreamOperation(url:String)
Creates a new
LoadURLStreamOperation instance. | LoadURLStreamOperation | ||
![]() |
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
| LoadURLStreamOperation | ||
![]() |
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 URLStream. | LoadURLStreamOperation | ||
|
init(url:String):void
Initializes the current
LoadURLStreamOperation with the specified URL. | LoadURLStreamOperation | ||
|
progressHandler(event:ProgressEvent):void
Handles the
ProgressEvent.PROGRESS event of the internally created URLStream. | LoadURLStreamOperation | ||
|
removeEventListeners():void
Removes all the registered event handlers from the internally created
URLStream and
sets it to null afterwards. | LoadURLStreamOperation | ||
![]() |
startTimeout():void
| AbstractOperation | |
| urlStream | property |
urlStream:URLStream [read-only]Implementation
public function get urlStream():URLStream
| LoadURLStreamOperation | () | constructor |
public function LoadURLStreamOperation(url:String)
Creates a new LoadURLStreamOperation instance.
url:String — The specified URL where the stream will be laoded from.
|
| completeHandler | () | method |
protected function completeHandler(event:Event):voidParameters
event:Event |
| errorHandler | () | method |
protected function errorHandler(event:Event):void
Handles the SecurityErrorEvent.SECURITY_ERROR and IOErrorEvent.IO_ERROR events of the internally created URLStream.
event:Event — The specified ProgressEvent.PROGRESS or IOErrorEvent.IO_ERROR event.
|
| init | () | method |
protected function init(url:String):void
Initializes the current LoadURLStreamOperation with the specified URL.
url:String — The specified URL.
|
| progressHandler | () | method |
protected function progressHandler(event:ProgressEvent):void
Handles the ProgressEvent.PROGRESS event of the internally created URLStream.
event:ProgressEvent — The specified ProgressEvent.PROGRESS event.
|
| removeEventListeners | () | method |
protected function removeEventListeners():void
Removes all the registered event handlers from the internally created URLStream and
sets it to null afterwards.