Packageorg.springextensions.actionscript.core.operation
SVN browsingIProgressOperation.as
FisheyeIProgressOperation.as
Interfacepublic interface IProgressOperation extends IOperation, flash.events.IEventDispatcher
ImplementorsAbstractProgressOperation

Subinterface of IOperation that contains information about the progress of an operation.



Documentation reference: long running operations


Public Properties
 PropertyDefined by
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
IOperation
  progress : uint
[read-only] The progress of this operation.
IProgressOperation
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
IOperation
 Inheritedtimeout : int
The timeout in milliseconds.
IOperation
  total : uint
[read-only] The total amount of progress this operation should make before being done.
IProgressOperation
Public Methods
 MethodDefined by
 Inherited
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
IOperation
 Inherited
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
IOperation
  
addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.PROGRESS event.
IProgressOperation
 Inherited
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
IOperation
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
IOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
IOperation
  
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
IProgressOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
IOperation
Events
 EventSummaryDefined by
 Inherited Dispatched when the current IOperation completed successfully.IOperation
 Inherited Dispatched when the current IOperation encountered an error.IOperation
   Dispatched after the current IProgressOperation received a progress update.IProgressOperation
 Inherited Dispatched when the current IOperation timed out.IOperation
Property detail
progressproperty
progress:uint  [read-only]

The progress of this operation.

Implementation
    public function get progress():uint
totalproperty 
total:uint  [read-only]

The total amount of progress this operation should make before being done.

Implementation
    public function get total():uint
Method detail
addProgressListener()method
public function addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Convenience method for adding a listener to the OperationEvent.PROGRESS event.

Parameters
listener:Function — the event handler function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)
removeProgressListener()method 
public function removeProgressListener(listener:Function, useCapture:Boolean = false):void

Convenience method for removing a listener from the OperationEvent.PROGRESS event.

Parameters
listener:Function — the event handler function
 
useCapture:Boolean (default = false)
Event detail
operationProgressevent 
Event object type: org.springextensions.actionscript.core.operation.OperationEvent

Dispatched after the current IProgressOperation received a progress update.