Packagecom.bourre.commands
Classpublic class ASyncQueue
InheritanceASyncQueue Inheritance ASyncBatch Inheritance AbstractSyncCommand Inheritance AbstractCommand

Player version: Flash Player 9.0
Language version: ActionScript 3.0

An asynchronous queue behave as the asynchronous batch, but use the event dispatch by a sub-command to pass it in the execute method of the next sub-command.

The ASyncBatch class extends AbstractSyncCommand and so, dispatch an onCommandEnd event at the execution end of all commands. The event dispatched with the onCommandEnd event is the one dispatched by the last sub-command.



Protected Properties
 PropertyDefined by
 Inherited_aCommands : Array
Contains all commands currently in this macro command
ASyncBatch
 Inherited_bIsRunning : Boolean
A boolean value which indicates if this command is currently processing.
AbstractSyncCommand
 Inherited_eEvent : Event
Event received by the batch and redispatched to the internal commands execute method.
ASyncBatch
 Inherited_eOnCommandEnd : BasicEvent
An event instance used as event object when dispatching the onCommandEnd event to its listener.
AbstractSyncCommand
 Inherited_nIndex : Number
Store the index of the currently executed command.
ASyncBatch
 Inherited_oEB : EventBroadcaster
The internal event broadcaster.
AbstractSyncCommand
 Inherited_oLastCommand : ASyncCommand
Last executed command
ASyncBatch
 Inherited_owner : Plugin
A reference to the plugin owner of this command.
AbstractCommand
Public Methods
 MethodDefined by
  
Creates a new asynchronous queue object.
ASyncQueue
 Inherited
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in listener as listener for the onCommandEnd event of this command.
AbstractSyncCommand
 Inherited
addCommand(command:Command):Boolean
Adds the passed-in command to this macro command.
ASyncBatch
 Inherited
execute(e:Event = null):void
Starts the execution of the batch.
ASyncBatch
 Inherited
Fires the onCommandEnd event to the listeners of this command.
AbstractSyncCommand
 Inherited
Returns the exclusive logger object owned by the plugin.
AbstractCommand
 Inherited
getModel(key:String):AbstractModel
Returns a reference to the model AbstractModel.
AbstractCommand
 Inherited
Returns a reference to the owner of this command.
AbstractCommand
 Inherited
getView(key:String):AbstractView
Returns a reference to the view AbstractView.
AbstractCommand
 Inherited
isModelRegistered(key:String):Boolean
Check if a model AbstractModel is registered with passed key in owner's ModelLocator.
AbstractCommand
 Inherited
isRunning():Boolean
Returns true if this command is currently processing.
AbstractSyncCommand
 Inherited
isViewRegistered(key:String):Boolean
Check if a view AbstractView is registered with passed key in owner's ViewLocator.
AbstractCommand
  
onCommandEnd(e:Event):void
Receives event of the last executed command and start the next one with the event object received in this call.
ASyncQueue
 Inherited
Removes the passed-in listener for listening the onCommandEnd event of this command.
AbstractSyncCommand
 Inherited
removeCommand(command:Command):Boolean
Removes the passed-in command from this macro command.
ASyncBatch
 Inherited
run():void
Implementation of the Runnable interface, a call to run() is equivalent to a call to execute without argument.
AbstractSyncCommand
 Inherited
setOwner(owner:Plugin):void
Defines the plugin owner of this command.
ASyncBatch
 Inherited
toString():String
Returns the string representation of the object.
AbstractSyncCommand
Protected Methods
 MethodDefined by
 Inherited
_hasNext():Boolean
Returns true if there is a command to execute.
ASyncBatch
 Inherited
Returns the next command to execute.
ASyncBatch
 Inherited
firePrivateEvent(e:Event):void
Fires a private event directly on this command's owner.
AbstractCommand
Public Constants
 ConstantDefined by
 InheritedonCommandEndEVENT : String = "onCommandEnd"
[static] Name of the event dispatched at the end of the command's process.
AbstractSyncCommand
Constructor detail
ASyncQueue()constructor
public function ASyncQueue()

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates a new asynchronous queue object.

Method detail
onCommandEnd()method
public override function onCommandEnd(e:Event):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Receives event of the last executed command and start the next one with the event object received in this call.

Parameters
e:Event