Packageorg.springextensions.actionscript.mvcs.command
Interfacepublic interface IAsyncCommand extends ICommand, flash.events.IEventDispatcher
SubinterfacesICompositeCommand
ImplementorsAbstractAsyncCommand

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 RESULT or FAULT event before calling "execute()" and handle the events.



Public Methods
 MethodDefined by
  
addFaultListener(listener:Function):void
Adds a listener for the "asyncCommandFault" event.
IAsyncCommand
  
addResultListener(listener:Function):void
Adds a listener for the "asyncCommandResult" event.
IAsyncCommand
  
dispatchFaultEvent(fault:Object, bubbles:Boolean = false, cancelable:Boolean = false):void
IAsyncCommand
  
dispatchResultEvent(result:Object, bubbles:Boolean = false, cancelable:Boolean = false):void
IAsyncCommand
 Inherited
execute():void
Executes the command.
ICommand
Method detail
addFaultListener()method
public function addFaultListener(listener:Function):void

Adds a listener for the "asyncCommandFault" event.

Parameters
listener:Function
addResultListener()method 
public function addResultListener(listener:Function):void

Adds a listener for the "asyncCommandResult" event.

Parameters
listener:Function
dispatchFaultEvent()method 
public function dispatchFaultEvent(fault:Object, bubbles:Boolean = false, cancelable:Boolean = false):voidParameters
fault:Object
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
dispatchResultEvent()method 
public function dispatchResultEvent(result:Object, bubbles:Boolean = false, cancelable:Boolean = false):voidParameters
result:Object
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)