Packagecom.bourre.commands
Interfacepublic interface Command
SubinterfacesASyncCommand, DisplayObjectBuilder, IterationCommand, MacroCommand
ImplementorsAbstractCommand, Delegate, EventCallbackAdapter

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.

Commands are named state-less when they can work only from the passed-in event in the execute method without having to define any parameters in the constructor.

Commands can be asynchronous by implementing the ASyncCommand interface.

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

See also

ASyncCommand.html


Public Methods
 MethodDefined by
  
execute(e:Event = null):void
Execute the request according to the current command data.
Command
Method detail
execute()method
public function execute(e:Event = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Execute the request according to the current command data.

Stateless commands may use the passed-in event object as data source for its execution. If the execution can't be performed because of unreachable data the command have to throw an error.

Parameters
e:Event (default = null) — An event that will be used as data source by the command.

Throws
UnreachableDataException — Stateless command use the passed-in event as data source for its execution, so the event must provide the right data for the current Command object.