| Package | com.bourre.commands |
| Interface | public interface ASyncCommand extends Command, Runnable |
| Subinterfaces | AdvancedTween, ASyncCommandSequencerListener, Loader, LoopCommandListener, Service, TweenListener |
| Implementors | AbstractLoader, AbstractSyncCommand, ASyncBatch, ASyncCommandSequencer, FrontController, LoopCommand |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
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
| Method | Defined by | ||
|---|---|---|---|
|
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener
for this command events.
| ASyncCommand | ||
![]() |
execute(e:Event = null):void
Execute the request according to the current command data.
| Command | |
|
fireCommandEndEvent():void
Fires the
onCommandEnd event to the listeners of this command. | ASyncCommand | ||
![]() |
isRunning():Boolean
Returns
true if this object is running. | Runnable | |
|
removeASyncCommandListener(listener:ASyncCommandListener):Boolean
Removes the passed-in command listener object as listener
for this command events.
| ASyncCommand | ||
![]() |
run():void
Starts the asynchronous process of this runnable object.
| Runnable | |
| 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.
listener:ASyncCommandListener — the listener object which want to
receive notification from this command
|
|
... rest — optional arguments corresponding to the
EventBroadcaster.addEventListener()
behavior.
|
Boolean — true 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.
Parameterslistener:ASyncCommandListener — the listener object which to remove from this
command's listeners
|
Boolean — true if the listener have been removed as result
of the call
|
See also