Packageorg.springextensions.actionscript.core.task
SVN browsingIIfElseBlock.as
FisheyeIIfElseBlock.as
Interfacepublic interface IIfElseBlock extends ITask, ICommand, IOperation, flash.events.IEventDispatcher, ITaskBlock, IConditionProviderAware
ImplementorsIfElseBlock

Describes an object consisting of one or two logical blocks which can be executed depending on the result of an IConditionProvider instance.



Documentation reference: tasks


Public Properties
 PropertyDefined by
 InheritedconditionProvider : IConditionProvider
IConditionProviderAware
 Inheritedcontext : Object
An anonymous object that can be used to store values that can be accessed by other client code to pass around these values between commands.
ITask
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
IOperation
 InheritedisClosed : Boolean
If true no more ICommands can be added to the current ITaskBlock.
ITaskBlock
 Inheritedparent : ITask
If the current ITask is part of the execution chain of another ITask, this property will have a reference to that instance.
ITask
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
IOperation
 Inheritedtimeout : int
The timeout in milliseconds.
IOperation
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
 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
and(command:ICommand):ITask
Adds an ICommand that will be executed in parallel.
ITask
 Inherited
Interupts the current ITaskBlock if its part of a loop construct.
ITaskBlock
 Inherited
Continues the current ITaskBlock if its part of a loop construct.
ITaskBlock
 Inherited
Switches the current IIfElseBlock control flow to its else block.
ITask
 Inherited
Closes the current ITaskBlock.
ITask
 Inherited
execute():*
Executes the command.
ICommand
 Inherited
Stops the execution chain completely.
ITask
 Inherited
for_(count:uint, countProvider:ICountProvider = null, forBlock:IForBlock = null):IForBlock
Adds a repeating execution block which will be executed a specified number of times, determined by the specified count or ICountProvider parameters.
ITask
 Inherited
if_(condition:IConditionProvider = null, ifElseBlock:IIfElseBlock = null):IIfElseBlock
Adds a conditional execution block to the current ITask which will only be executed if the specified IConditionProvider return true.
ITask
 Inherited
next(command:ICommand):ITask
Adds an ICommand that will be executed in sequence.
ITask
 Inherited
pause(duration:uint, pauseCommand:ICommand = null):ITask
Pauses the current ITask for the specified amount of milliseconds.
ITask
 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
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
IOperation
 Inherited
reset(doHardReset:Boolean = false):ITask
Restarts the execution of the current ITask.
ITask
  
IIfElseBlock
 Inherited
while_(condition:IConditionProvider = null, whileBlock:IWhileBlock = null):IWhileBlock
Adds a repeating execution block which will be executed until the specified IConditionProvider returns false.
ITask
Events
 EventSummaryDefined by
 Inherited Dispatched when the current IOperation completed successfully.IOperation
 Inherited Dispatched when the current IOperation encountered an error.IOperation
 Inherited Dispatched when the current IOperation timed out.IOperation
 Inherited Dispatched when the task is aborted.ITask
 Inherited Dispatched after the task has executed an ICommand.ITask
 Inherited Dispatched before the task executes an ICommand.ITask
 Inherited Dispatched when the task is completed.ITask
Method detail
switchToElseBlock()method
public function switchToElseBlock():void