Packageorg.springextensions.actionscript.core.task.command
SVN browsingTaskCommand.as
FisheyeTaskCommand.as
Classpublic class TaskCommand
InheritanceTaskCommand Inheritance CompositeCommand Inheritance AbstractProgressOperation Inheritance AbstractOperation Inheritance flash.events.EventDispatcher
ImplementsIResetable



Documentation reference: tasks


Public Properties
 PropertyDefined by
 Inheritedcommands : Array
CompositeCommand
 InheritedcurrentCommand : ICommand
The ICommand that is currently being executed.
CompositeCommand
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
AbstractOperation
 InheritedfailOnFault : Boolean = false
Determines if the execution of all the ICommands should be aborted if an IAsyncCommand instance dispatches an AsyncCommandFaultEvent event.
CompositeCommand
 Inheritedkind : CompositeCommandKind
CompositeCommand
 InheritednumCommands : uint
The number of pending commands.
CompositeCommand
 Inheritedprogress : uint
The progress of this operation.
AbstractProgressOperation
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
 Inheritedtimeout : int
The timeout in milliseconds.
AbstractOperation
 Inheritedtotal : uint
The total amount of progress this operation should make before being done.
AbstractProgressOperation
Public Methods
 MethodDefined by
  
Creates a new TaskCommand instance.
TaskCommand
 Inherited
Adds an ICommand to the current ICompositeCommand.
CompositeCommand
 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.
AbstractOperation
 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.
AbstractOperation
 Inherited
addOperation(operationClass:Class, ... constructorArgs):ICompositeCommand
CompositeCommand
 Inherited
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
 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.
AbstractOperation
 Inherited
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a OperationEvent.ERROR event.
AbstractOperation
 Inherited
Convenience method for dispatching a OperationEvent.TIMEOUT event.
AbstractOperation
  
execute():*
TaskCommand
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
AbstractOperation
 Inherited
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
AbstractProgressOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
AbstractOperation
  
reset():void
TaskCommand
Protected Methods
 MethodDefined by
  
addCommandListeners(asyncCommand:IOperation):void
Adds the onCommandResult and onCommandFault event handlers to the specified IAsyncCommand instance.
TaskCommand
 Inherited
CompositeCommand
 Inherited
CompositeCommand
 Inherited
Convenience method for dispatching a OperationEvent.PROGRESS event.
AbstractProgressOperation
 Inherited
executeCommand(command:ICommand):void
If the specified ICommand implements the IAsyncCommand interface the onCommandResult and onCommandFault event handlers are added.
CompositeCommand
 Inherited
CompositeCommand
  
TaskCommand
  
TaskCommand
 Inherited
CompositeCommand
 Inherited
CompositeCommand
 Inherited
removeCommand(asyncCommand:IOperation):void
CompositeCommand
  
Removes the onCommandResult and onCommandFault event handlers from the specified IAsyncCommand instance.
TaskCommand
 Inherited
setCommands(value:Array):void
CompositeCommand
 Inherited
startTimeout():void
AbstractOperation
Events
 EventSummaryDefined by
 Inherited Dispatched when the current AbstractOperation has new progress information to report.AbstractProgressOperation
 Inherited Dispatched when the current AbstractOperation has completed its functionality successfully.AbstractOperation
 Inherited Dispatched when the current AbstractOperation encountered an error.AbstractOperation
 Inherited Dispatched when the current AbstractOperation timed out.AbstractOperation
Constructor detail
TaskCommand()constructor
public function TaskCommand(kind:CompositeCommandKind = null)

Creates a new TaskCommand instance.

Parameters
kind:CompositeCommandKind (default = null)
Method detail
addCommandListeners()method
protected override function addCommandListeners(asyncCommand:IOperation):void

Adds the onCommandResult and onCommandFault event handlers to the specified IAsyncCommand instance.

Parameters
asyncCommand:IOperation
execute()method 
public override function execute():*

Returns
*
executeNextCommand()method 
protected override function executeNextCommand():void
flowControlEvent_handler()method 
protected function flowControlEvent_handler(event:TaskFlowControlEvent):voidParameters
event:TaskFlowControlEvent
removeCommandListeners()method 
protected override function removeCommandListeners(asyncCommand:IOperation):void

Removes the onCommandResult and onCommandFault event handlers from the specified IAsyncCommand instance.

Parameters
asyncCommand:IOperation
reset()method 
public function reset():void