Packagecom.jadbox.flashmvc2
Classpublic class SuperEvent

SuperEvent acts like a model for an action class and, at the same time, as a proxy to the constructor of that action class through its own constructor.



Public Properties
 PropertyDefined by
  actionRef : Class
SuperEvent
  _actionRef : Class
[read-only]
SuperEvent
  BUSY : String = "busy"
[static] Action is working
SuperEvent
  COMPLETE : String = "complete"
[static] The action has completed (whether successful or not)
SuperEvent
  _data : Array
SuperEvent
  DISABLED : String = "disabled"
[static] Action is disabled
SuperEvent
  ENABLED : String = "enabled"
[static] Action is enabled
SuperEvent
  events : EventDispatcher
SuperEvent
  FREE : String = "free"
[static] Action is no longer working
SuperEvent
  onComplete : Function
SuperEvent
  response : *
A variable to hold a generic value for non-extended SuperEvents.
SuperEvent
  successful : Boolean = true
True if the command finished in a successful way.
SuperEvent
  __superModel : SuperModel
SuperEvent
  _superModel : SuperModel
[read-only] Reference to the SuperModel that this class is hooked to by SuperAction.
SuperEvent
  working : Boolean
SuperEvent
Public Methods
 MethodDefined by
  
SuperEvent(... REST)
Constructor.
SuperEvent
  
complete(success:Boolean):void
The action class calls this method to finish/close the class.
SuperEvent
Property detail
actionRefproperty
public var actionRef:Class
_actionRefproperty 
_actionRef:Class  [read-only]Implementation
    public function get _actionRef():Class
BUSYproperty 
public static var BUSY:String = "busy"

Action is working

COMPLETEproperty 
public static var COMPLETE:String = "complete"

The action has completed (whether successful or not)

_dataproperty 
public var _data:Array
DISABLEDproperty 
public static var DISABLED:String = "disabled"

Action is disabled

ENABLEDproperty 
public static var ENABLED:String = "enabled"

Action is enabled

eventsproperty 
public var events:EventDispatcher
FREEproperty 
public static var FREE:String = "free"

Action is no longer working

onCompleteproperty 
public var onComplete:Function
responseproperty 
public var response:*

A variable to hold a generic value for non-extended SuperEvents.

successfulproperty 
public var successful:Boolean = true

True if the command finished in a successful way.

__superModelproperty 
public var __superModel:SuperModel
_superModelproperty 
_superModel:SuperModel  [read-only]

Reference to the SuperModel that this class is hooked to by SuperAction. Use this to set global properties.

Implementation
    public function get _superModel():SuperModel
workingproperty 
public var working:Boolean
Constructor detail
SuperEvent()constructor
public function SuperEvent(... REST)

Constructor. This class should be extended for every action class.

Parameters
... REST — This parameter gets passed the extended class's parameters.
Method detail
complete()method
public function complete(success:Boolean):void

The action class calls this method to finish/close the class. This method must be called at the once the class is done.

Parameters
success:Boolean — This tells SuperAction and SuperEvent if this action was successful.