Packagesandy.commands
Interfacepublic interface Command
ImplementorsDelegate

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 also



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

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
— 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.