Packagecom.degrafa.core
Classpublic class DegrafaObject
ImplementsIDegrafaObject, mx.core.IMXMLObject
SubclassesBitmapFill, BlendFill, ComplexFill, DegrafaCollection, DegrafaSkinManipulator, Geometry, GradientFillBase, GradientStop, GraphicPointEX, Segment, SolidFill, SolidStroke, Transform

Base class for all event enabled Degrafa objects.



Public Properties
 PropertyDefined by
  document : Object
[read-only] The MXML document that created this object.
DegrafaObject
  enableEvents : Boolean
Enable events for this object.
DegrafaObject
  hasEventManager : Boolean
[read-only] Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
  id : String
The identifier used by document to refer to this object.
DegrafaObject
  name : String
[read-only] The name that refers to this object.
DegrafaObject
  suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
  eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
  
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
  
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
  
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
  
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
  
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
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
  
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
Events
 EventSummaryDefined by
    DegrafaObject
    DegrafaObject
Property detail
documentproperty
document:Object  [read-only]

The MXML document that created this object.

Implementation
    public function get document():Object
enableEventsproperty 
enableEvents:Boolean  [read-write]

Enable events for this object.

Implementation
    public function get enableEvents():Boolean
    public function set enableEvents(value:Boolean):void
eventDispatcherproperty 
eventDispatcher:EventDispatcher  [read-write]

EventDispatcher instance for this object.

Implementation
    protected function get eventDispatcher():EventDispatcher
    protected function set eventDispatcher(value:EventDispatcher):void
hasEventManagerproperty 
hasEventManager:Boolean  [read-only]

Tests to see if a EventDispatcher instance has been created for this object.

Implementation
    public function get hasEventManager():Boolean
idproperty 
id:String  [read-write]

The identifier used by document to refer to this object.

Implementation
    public function get id():String
    public function set id(value:String):void
nameproperty 
name:String  [read-only]

The name that refers to this object.

Implementation
    public function get name():String
suppressEventProcessingproperty 
suppressEventProcessing:Boolean  [read-write]

Temporarily suppress event processing for this object.

Implementation
    public function get suppressEventProcessing():Boolean
    public function set suppressEventProcessing(value:Boolean):void
Method detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.

Parameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)

See also

EventDispatcher
dispatchEvent()method 
public function dispatchEvent(evt:Event):Boolean

Dispatches an event into the event flow.

Parameters
evt:Event

Returns
Boolean

See also

EventDispatcher
dispatchPropertyChange()method 
public function 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.

Parameters
bubbles:Boolean (default = false)
 
property:Object (default = null)
 
oldValue:Object (default = null)
 
newValue:Object (default = null)
 
source:Object (default = null)

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Checks whether the EventDispatcher object has any listeners registered for a specific type of event.

Parameters
type:String

Returns
Boolean

See also

EventDispatcher
initChange()method 
public function initChange(property:String, oldValue:Object, newValue:Object, source:Object):void

Helper function for dispatching property changes

Parameters
property:String
 
oldValue:Object
 
newValue:Object
 
source:Object
initialized()method 
public function 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.

Parameters
document:Object — The MXML document that created this object.
 
id:String — The identifier used by document to refer to this object.
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Removes a listener from the EventDispatcher object.

Parameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)

See also

EventDispatcher
willTrigger()method 
public function 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.

Parameters
type:String

Returns
Boolean

See also

EventDispatcher
Event detail
initializeevent 
Event object type: mx.events.FlexEvent

propertyChangeevent  
Event object type: mx.events.PropertyChangeEvent