Packagecom.adobe.cairngorm.task
Classpublic class ParallelTask
InheritanceParallelTask Inheritance TaskGroup Inheritance Task Inheritance flash.events.EventDispatcher

A task group that processes its children in pseudo-parallel. All the child tasks are started in quick succession and the task group only finishes when all the children have completed successfully. If any child has a fault, then the task group fails with a fault also.

Default MXML Propertychildren



Public Properties
 PropertyDefined By
 Inheritedchildren : Array
TaskGroup
 InheritedcurrentState : String
[read-only]
Task
 Inheritedenabled : Boolean
Task
 Inheritedlabel : String
Task
 Inheritedprocessed : uint
[read-only]
TaskGroup
 Inheritedsize : uint
[read-only]
TaskGroup
Public Methods
 MethodDefined By
  
ParallelTask
 Inherited
addChild(child:ITask):void
TaskGroup
 Inherited
removeChild(child:ITask):void
TaskGroup
 Inherited
start():void
Task
Protected Methods
 MethodDefined By
 Inherited
complete():void
This should be called by a concrete sub-class to indicate that the task has been completed.
Task
 Inherited
fault(message:String = null):void
This should be called by a concrete sub-class to indicate that the task has been halted due to a fault.
Task
  
[override]
ParallelTask
  
[override]
ParallelTask
 Inherited
This event handler is called whenever a child task is started.
TaskGroup
  
[override]
ParallelTask
 Inherited
processChild(child:ITask):Boolean
Processes the specified child by starting it if it is enabled or skipping it if it is disabled.
TaskGroup
Events
 Event Summary Defined By
 InheritedTaskGroup
 InheritedTaskGroup
 InheritedTaskGroup
 InheritedTask
 InheritedTask
 InheritedTask
 InheritedTaskGroup
 InheritedTask
Constructor Detail
ParallelTask()Constructor
public function ParallelTask()



Method Detail
onChildTaskComplete()method
override protected function onChildTaskComplete(event:TaskEvent):void

Parameters

event:TaskEvent

onChildTaskFault()method 
override protected function onChildTaskFault(event:TaskEvent):void

Parameters

event:TaskEvent

performTask()method 
override protected function performTask():void