Packagecom.jadbox.flashmvc
Classpublic class SuperModelEvent
InheritanceSuperModelEvent Inheritance flash.events.Event

Custom events for flashMVC. These are dispatched for you on SuperModel for your view logic.



Public Properties
 PropertyDefined by
  name : String
SuperModelEvent
  result : Object
SuperModelEvent
  status : Boolean
SuperModelEvent
Public Methods
 MethodDefined by
  
SuperModelEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
SuperModelEvent
  
clone():Event
SuperModelEvent
  
toString():String
SuperModelEvent
Public Constants
 ConstantDefined by
  ACTION_ADD_REMOVE : String = "actionAddRemove"
[static] e.name is the action class name and e.status is true/false if it has been added or just removed from the SuperModel SuperModel had a variable change from a performing controller (e.name is the var name)
SuperModelEvent
  ACTION_COMPLETE : String = "actionComplete"
[static] Dispatched once an action on the SuperModel has finished performing and compeleted.
SuperModelEvent
  ACTION_ENABLED_CHANGE : String = "actionEnabledChange"
[static] Dispatched when a action controller is enabled or disabled e.name is the action class name and e.status is true/false if it has been enabled or disabled
SuperModelEvent
  MODEL_PERFORMING : String = "modelPerforming"
[static] SuperModel is either performing something or not (e.status true/false)
SuperModelEvent
  MODEL_UPATED : String = "modelUpdated"
[static] Dispatched when a variable has been updated in the SuperModel
SuperModelEvent
Property detail
nameproperty
public var name:String
resultproperty 
public var result:Object
statusproperty 
public var status:Boolean
Constructor detail
SuperModelEvent()constructor
public function SuperModelEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event
toString()method 
public override function toString():String

Returns
String
Constant detail
ACTION_ADD_REMOVEconstant
public static const ACTION_ADD_REMOVE:String = "actionAddRemove"

e.name is the action class name and e.status is true/false if it has been added or just removed from the SuperModel SuperModel had a variable change from a performing controller (e.name is the var name)

ACTION_COMPLETEconstant 
public static const ACTION_COMPLETE:String = "actionComplete"

Dispatched once an action on the SuperModel has finished performing and compeleted. e.name is the action class name e.result is the result object that the action class can set e.status if the command completed successfully. 0 is actionHelper.fail() and 1 is actionHelper.complete()

ACTION_ENABLED_CHANGEconstant 
public static const ACTION_ENABLED_CHANGE:String = "actionEnabledChange"

Dispatched when a action controller is enabled or disabled e.name is the action class name and e.status is true/false if it has been enabled or disabled

MODEL_PERFORMINGconstant 
public static const MODEL_PERFORMING:String = "modelPerforming"

SuperModel is either performing something or not (e.status true/false)

MODEL_UPATEDconstant 
public static const MODEL_UPATED:String = "modelUpdated"

Dispatched when a variable has been updated in the SuperModel