| Package | com.bourre.commands |
| Interface | public interface Command |
| Subinterfaces | ASyncCommand, DisplayObjectBuilder, IterationCommand, MacroCommand |
| Implementors | AbstractCommand, Delegate, EventCallbackAdapter |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
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
| Method | Defined by | ||
|---|---|---|---|
|
execute(e:Event = null):void
Execute the request according to the current command data.
| Command | ||
| 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.
Parameterse:Event (default = null) — An event that will be used as data source by the command.
|
— 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.
|