| Package | org.springextensions.actionscript.core.operation |
| SVN browsing | AbstractProgressOperation.as |
| Fisheye | AbstractProgressOperation.as |
| Class | public class AbstractProgressOperation |
| Inheritance | AbstractProgressOperation AbstractOperation flash.events.EventDispatcher |
| Implements | IProgressOperation |
| Subclasses | CompositeCommand, GenericOperationCommand, LoadModuleOperation, LoadResourceModuleOperation, LoadStyleModuleOperation, LoadURLOperation, LoadURLStreamOperation, OperationQueue |
IProgressOperation implementations.
Documentation reference: operations
| 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractProgressOperation(timeoutInMilliseconds:uint = 0, autoStartTimeout:Boolean = true)
Creates a new
AbstractProgressOperation instance. | AbstractProgressOperation | ||
![]() |
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 | ||
|---|---|---|---|
|
dispatchProgressEvent():void
Convenience method for dispatching a
OperationEvent.PROGRESS event. | AbstractProgressOperation | ||
![]() |
startTimeout():void
| AbstractOperation | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
Dispatched when the current AbstractOperation has new progress information to report. | AbstractProgressOperation | |||
![]() |
Dispatched when the current AbstractOperation has completed its functionality successfully. | AbstractOperation | ||
![]() |
Dispatched when the current AbstractOperation encountered an error. | AbstractOperation | ||
![]() |
Dispatched when the current AbstractOperation timed out. | AbstractOperation | ||
| progress | property |
progress:uint [read-write]The progress of this operation.
Implementation public function get progress():uint
public function set progress(value:uint):void
| total | property |
total:uint [read-write]The total amount of progress this operation should make before being done.
Implementation public function get total():uint
public function set total(value:uint):void
| AbstractProgressOperation | () | constructor |
public function AbstractProgressOperation(timeoutInMilliseconds:uint = 0, autoStartTimeout:Boolean = true)
Creates a new AbstractProgressOperation instance.
timeoutInMilliseconds:uint (default = 0) |
|
autoStartTimeout:Boolean (default = true) |
| addProgressListener | () | method |
public function addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidConvenience method for adding a listener to the OperationEvent.PROGRESS event.
Parameterslistener:Function — the event handler function
|
|
useCapture:Boolean (default = false) |
|
priority:int (default = 0) |
|
useWeakReference:Boolean (default = false) |
| dispatchProgressEvent | () | method |
protected function dispatchProgressEvent():void
Convenience method for dispatching a OperationEvent.PROGRESS event.
| removeProgressListener | () | method |
public function removeProgressListener(listener:Function, useCapture:Boolean = false):voidConvenience method for removing a listener from the OperationEvent.PROGRESS event.
Parameterslistener:Function — the event handler function
|
|
useCapture:Boolean (default = false) |
| operationComplete | event |
org.springextensions.actionscript.core.operation.OperationEvent
Dispatched when the current AbstractOperation has new progress information to report.