Packageorg.spicefactory.lib.command.events
Classpublic class CommandResultEvent
InheritanceCommandResultEvent Inheritance CommandEvent Inheritance flash.events.Event
Implements CommandResult

Event dispatched by commands when they finished executing. This event also implements the CommandResult interface.



Public Properties
 PropertyDefined By
 Inheritedcommand : 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
Public Methods
 MethodDefined By
  
CommandResultEvent(type:String, result:Object)
Creates a new instance.
CommandResultEvent
Public Constants
 ConstantDefined By
 InheritedCANCEL : 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
 InheritedRESUME : String = resume
[static] Constant for the type of event fired when a command was resumed.
CommandEvent
 InheritedSUSPEND : String = suspend
[static] Constant for the type of event fired when a command was suspended.
CommandEvent
Property Detail
completeproperty
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.


Implementation
    public function get complete():Boolean
valueproperty 
value:Object  [read-only]

The actual result value.


Implementation
    public function get value():Object
Constructor Detail
CommandResultEvent()Constructor
public function CommandResultEvent(type:String, result:Object)

Creates a new instance.

Parameters
type:String — the type of the event
 
result:Object
Constant Detail
COMPLETEConstant
public static const COMPLETE:String = complete

Constant for the type of event fired when a command completed successfully.

ERRORConstant 
public static const ERROR:String = error

Constant for the type of event fired when a command aborted with an error.