Packageorg.springextensions.actionscript.core.command
SVN browsingIAsyncCommand.as
FisheyeIAsyncCommand.as
Interfacepublic interface IAsyncCommand extends ICommand, IOperation, flash.events.IEventDispatcher
ImplementorsGenericOperationCommand

Describes an asynchronous command. In contrast to a synchronous command, an asynchronous command is not done executing directly after a call to the execute() method. Instead, a caller should register to the OperationEvent.COMPLETE or OperationEvent.ERROR event before calling execute() and handle the events.



Documentation reference: commands


Public Properties
 PropertyDefined by
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
IOperation
 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
execute():*
Executes the command.
ICommand
 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
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