Packagecom.bourre.commands
Interfacepublic interface ASyncCommand extends Command, Runnable
SubinterfacesAdvancedTween, ASyncCommandSequencerListener, Loader, LoopCommandListener, Service, TweenListener
ImplementorsAbstractLoader, AbstractSyncCommand, ASyncBatch, ASyncCommandSequencer, FrontController, LoopCommand

Player version: Flash Player 9.0
Language version: ActionScript 3.0

An asynchronous command is a runnable command, which is not terminated at the end of the execute call, for example a remoting request, or a file loading.

An asynchronous command define a specific ending for the operation. The command dispatch an onCommandEnd event at the end of its process.

See the How to use the Command pattern implementation in LowRA document for more details on the commands package structure.

See also

Command.html
Runnable.html


Public Methods
 MethodDefined by
  
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener for this command events.
ASyncCommand
 Inherited
execute(e:Event = null):void
Execute the request according to the current command data.
Command
  
Fires the onCommandEnd event to the listeners of this command.
ASyncCommand
 Inherited
isRunning():Boolean
Returns true if this object is running.
Runnable
  
Removes the passed-in command listener object as listener for this command events.
ASyncCommand
 Inherited
run():void
Starts the asynchronous process of this runnable object.
Runnable
Method detail
addASyncCommandListener()method
public function addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds the passed-in command listener object as listener for this command events.

The addASyncCommandListener function support the custom arguments provided by the EventBroadcaster.addEventListener() method.

Parameters
listener:ASyncCommandListener — the listener object which want to receive notification from this command
 
... rest — optional arguments corresponding to the EventBroadcaster.addEventListener() behavior.

Returns
Booleantrue if the listener have been added as result of the call

See also

fireCommandEndEvent()method 
public function fireCommandEndEvent():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Fires the onCommandEnd event to the listeners of this command.

removeASyncCommandListener()method 
public function removeASyncCommandListener(listener:ASyncCommandListener):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Removes the passed-in command listener object as listener for this command events.

Parameters
listener:ASyncCommandListener — the listener object which to remove from this command's listeners

Returns
Booleantrue if the listener have been removed as result of the call

See also