Packageorg.juicekit.events
Classpublic final class JuiceKitEvent
InheritanceJuiceKitEvent Inheritance flash.events.Event

The JuiceKitEvent class defines the event type string constants for many of the JuiceKit event types, especially custom data binding events.



Public Methods
 MethodDefined by
  
JuiceKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor.
JuiceKitEvent
Public Constants
 ConstantDefined by
  DATA_ROOT_CHANGE : String = "dataRootChange"
[static] The JuiceKitEvent.DATA_ROOT_CHANGE constant defines the value of the type property of the event object for an dataRootChange event.
JuiceKitEvent
Constructor detail
JuiceKitEvent()constructor
public function JuiceKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor.

Parameters
type:String — The event type; indicates the action that caused the event.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
Constant detail
DATA_ROOT_CHANGEconstant
public static const DATA_ROOT_CHANGE:String = "dataRootChange"

The JuiceKitEvent.DATA_ROOT_CHANGE constant defines the value of the type property of the event object for an dataRootChange event. The dataRootChange event is primarily used for data binding.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.