| Package | org.spicefactory.lib.command.events |
| Class | public class CommandResultEvent |
| Inheritance | CommandResultEvent CommandEvent flash.events.Event |
| Implements | CommandResult |
CommandResult interface.
| Property | Defined By | ||
|---|---|---|---|
![]() | command : Object [read-only]
The command that dispatched the event. | CommandEvent | |
| complete : Boolean [read-only]
Whether the command completed successfully. | CommandResultEvent | ||
| value : Object [read-only]
The actual result value. | CommandResultEvent | ||
| Method | Defined By | ||
|---|---|---|---|
CommandResultEvent(type:String, result:Object)
Creates a new instance. | CommandResultEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
![]() | CANCEL : String = cancel [static]
Constant for the type of event fired when a command was cancelled. | CommandEvent | |
| COMPLETE : String = complete [static]
Constant for the type of event fired when a command completed successfully. | CommandResultEvent | ||
| ERROR : String = error [static]
Constant for the type of event fired when a command aborted with an error. | CommandResultEvent | ||
![]() | RESUME : String = resume [static]
Constant for the type of event fired when a command was resumed. | CommandEvent | |
![]() | SUSPEND : String = suspend [static]
Constant for the type of event fired when a command was suspended. | CommandEvent | |
| complete | property |
complete:Boolean [read-only] Whether the command completed successfully. If this flag is false, the value property represents the error thrown or dispatched by the command.
public function get complete():Boolean| value | property |
value:Object [read-only] The actual result value.
public function get value():Object| CommandResultEvent | () | Constructor |
public function CommandResultEvent(type:String, result:Object)Creates a new instance.
Parameterstype:String — the type of the event
| |
result:Object |
| COMPLETE | Constant |
public static const COMPLETE:String = completeConstant for the type of event fired when a command completed successfully.
| ERROR | Constant |
public static const ERROR:String = errorConstant for the type of event fired when a command aborted with an error.