Packageorg.springextensions.actionscript.core.operation
SVN browsingOperationEvent.as
FisheyeOperationEvent.as
Classpublic class OperationEvent
InheritanceOperationEvent Inheritance flash.events.Event

An OperationEvent is an Event generated by an IOperation instance.



Documentation reference: operations


Public Properties
 PropertyDefined by
  error : *
[read-only]
OperationEvent
  operation : IOperation
OperationEvent
  result : *
[read-only]
OperationEvent
Public Methods
 MethodDefined by
  
OperationEvent(type:String, operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new OperationEvent instance.
OperationEvent
  
clone():Event
OperationEvent
  
createCompleteEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEvent
[static]
OperationEvent
  
createErrorEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEvent
[static]
OperationEvent
  
createProgressEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEvent
[static]
OperationEvent
  
createTimeoutEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEvent
[static]
OperationEvent
Public Constants
 ConstantDefined by
  COMPLETE : String = "operationComplete"
[static] The type of the OperationEvent dispatched when an IOperation is done/complete.
OperationEvent
  ERROR : String = "operationError"
[static] The type of the OperationEvent dispatched when an error occurs during the execution of an IOperation
OperationEvent
  PROGRESS : String = "operationProgress"
[static] The type of the OperationEvent dispatched upon progress of the IProgressOperation
OperationEvent
  TIMEOUT : String = "operationTimeout"
[static] The type of the OperationEvent dispatched when an IOperation times out.
OperationEvent
Property detail
errorproperty
error:*  [read-only]

Implementation
    public function get error():*
operationproperty 
operation:IOperation  [read-write]

Implementation
    public function get operation():IOperation
    public function set operation(value:IOperation):void
resultproperty 
result:*  [read-only]

Implementation
    public function get result():*
Constructor detail
OperationEvent()constructor
public function OperationEvent(type:String, operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new OperationEvent instance.

Parameters
type:String — The type of the current OperationEvent, can be either OperationEvent.COMPLETE, OperationEvent.ERROR or OperationEvent.PROGRESS.
 
operation:IOperation — The IOperation that generated the current OperationEvent.
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event — An exact copy of the current OperationEvent
createCompleteEvent()method 
public static function createCompleteEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEventParameters
operation:IOperation
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)

Returns
OperationEvent
createErrorEvent()method 
public static function createErrorEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEventParameters
operation:IOperation
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)

Returns
OperationEvent
createProgressEvent()method 
public static function createProgressEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEventParameters
operation:IOperation
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)

Returns
OperationEvent
createTimeoutEvent()method 
public static function createTimeoutEvent(operation:IOperation, bubbles:Boolean = false, cancelable:Boolean = false):OperationEventParameters
operation:IOperation
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)

Returns
OperationEvent
Constant detail
COMPLETEconstant
public static const COMPLETE:String = "operationComplete"

The type of the OperationEvent dispatched when an IOperation is done/complete.

ERRORconstant 
public static const ERROR:String = "operationError"

The type of the OperationEvent dispatched when an error occurs during the execution of an IOperation

PROGRESSconstant 
public static const PROGRESS:String = "operationProgress"

The type of the OperationEvent dispatched upon progress of the IProgressOperation

TIMEOUTconstant 
public static const TIMEOUT:String = "operationTimeout"

The type of the OperationEvent dispatched when an IOperation times out.