Packagecom.degrafa.triggers
Classpublic class EventTrigger
InheritanceEventTrigger Inheritance Trigger Inheritance DegrafaObject
ImplementsITrigger

EventTrigger will listen to the specified event on the source and set the specified state when that event occurs.



Public Properties
 PropertyDefined by
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
  event : String
The event on the source we are listening for
EventTrigger
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 InheritedisInitialized : Boolean
DegrafaObject
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
 InheritedruleFunction : Function
Function that gets evaluated on the event trigger and if true the state change will take place.
Trigger
 InheritedsetState : String
Trigger
 Inheritedsource : IEventDispatcher
The source of the property or event we want to be notified about.
Trigger
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
 InheritedtriggerParent : IDegrafaStateClient
The parent for this trigger.
Trigger
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
 Inherited_ruleFunction : Function
Trigger
Public Methods
 MethodDefined by
  
EventTrigger(source:IEventDispatcher = null, event:String = "", ruleFunction:Function = null)
Constructor.
EventTrigger
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
DegrafaObject
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
DegrafaObject
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
DegrafaObject
Protected Methods
 MethodDefined by
  
clearTrigger():void
Clears the listener setup by this trigger.
EventTrigger
  
initTrigger():void
Sets the listener on the event specified.
EventTrigger
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
eventproperty
event:String  [read-write]

The event on the source we are listening for

Implementation
    public function get event():String
    public function set event(value:String):void
Constructor detail
EventTrigger()constructor
public function EventTrigger(source:IEventDispatcher = null, event:String = "", ruleFunction:Function = null)

Constructor.

Parameters
source:IEventDispatcher (default = null)
 
event:String (default = "")
 
ruleFunction:Function (default = null)
Method detail
clearTrigger()method
protected override function clearTrigger():void

Clears the listener setup by this trigger.

initTrigger()method 
protected override function initTrigger():void

Sets the listener on the event specified.