Packageorg.aswing.event
Classpublic class InteractiveEvent
InheritanceInteractiveEvent Inheritance AWEvent Inheritance flash.events.Event
SubclassesFrameEvent, ScrollPaneEvent, SelectionEvent, TreeSelectionEvent, WindowEvent

The event that has is about interactive.

The important property programmatic indicated that whether or not the event is fired by the programmatic reason or user mouse/keyboard interaction reason.

See also

isProgrammatic()


Public Methods
 MethodDefined by
  
InteractiveEvent(type:String, programmatic:Boolean = false, bubbles:Boolean = false, cancelable:Boolean = false)
InteractiveEvent
  
clone():Event
InteractiveEvent
  
isProgrammatic():Boolean
Returns the programmatic property.
InteractiveEvent
Public Constants
 ConstantDefined by
 InheritedACT : String = "act"
[static] The AWEvent.ACT constant defines the value of the type property of the event object for a act event.
AWEvent
 InheritedFOCUS_GAINED : String = "focusGained"
[static] The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.
AWEvent
 InheritedFOCUS_LOST : String = "focusLost"
[static] The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.
AWEvent
 InheritedHIDDEN : String = "hidden"
[static] The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.
AWEvent
 InheritedPAINT : String = "paint"
[static] The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.
AWEvent
  SCROLL_CHANGED : String = "scrollChanged"
[static] The InteractiveEvent.SCROLL_CHANGED constant defines the value of the type property of the event object for a scrollChanged event.
InteractiveEvent
  SELECTION_CHANGED : String = "selectionChanged"
[static] The InteractiveEvent.SELECTION_CHANGED constant defines the value of the type property of the event object for a selectionChanged event.
InteractiveEvent
 InheritedSHOWN : String = "shown"
[static] The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.
AWEvent
  STATE_CHANGED : String = "stateChanged"
[static] The InteractiveEvent.STATE_CHANGED constant defines the value of the type property of the event object for a stateChanged event.
InteractiveEvent
  TEXT_CHANGED : String = "textChanged"
[static] The InteractiveEvent.TEXT_CHANGED constant defines the value of the type property of the event object for a textChanged event.
InteractiveEvent
Constructor detail
InteractiveEvent()constructor
public function InteractiveEvent(type:String, programmatic:Boolean = false, bubbles:Boolean = false, cancelable:Boolean = false)Parameters
type:String
 
programmatic:Boolean (default = false)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event
isProgrammatic()method 
public function isProgrammatic():Boolean

Returns the programmatic property. True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.

For example, if you drag the thumb of a slider, the slider will fire a event with programmatic=false, in the slider internal programmatic progress, or you directly call slider.setValue() it may fire a event with programmatic=true.

Returns
Boolean — the programmatic property.
Constant detail
SCROLL_CHANGEDconstant
public static const SCROLL_CHANGED:String = "scrollChanged"

The InteractiveEvent.SCROLL_CHANGED constant defines the value of the type property of the event object for a scrollChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp 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.
SELECTION_CHANGEDconstant 
public static const SELECTION_CHANGED:String = "selectionChanged"

The InteractiveEvent.SELECTION_CHANGED constant defines the value of the type property of the event object for a selectionChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp 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.
STATE_CHANGEDconstant 
public static const STATE_CHANGED:String = "stateChanged"

The InteractiveEvent.STATE_CHANGED constant defines the value of the type property of the event object for a stateChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp 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.
TEXT_CHANGEDconstant 
public static const TEXT_CHANGED:String = "textChanged"

The InteractiveEvent.TEXT_CHANGED constant defines the value of the type property of the event object for a textChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp 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.