Packageimpression.events
Classpublic class SimulationDataChangedEvent
InheritanceSimulationDataChangedEvent Inheritance flash.events.Event

An object that implements ISimulation dispatches a SimulationDataChangedEvent object when the simulation state data has changed.



Public Properties
 PropertyDefined By
  changeData : *
[read-only] The data that has changed.
SimulationDataChangedEvent
Public Methods
 MethodDefined By
  
SimulationDataChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, changeData:* = null)
Creates a new instance of a SimulationDataChangedEvent object.
SimulationDataChangedEvent
  
clone():Event
[override] Duplicates an instance of the event object.
SimulationDataChangedEvent
  
toString():String
[override] Returns a string containing all the properties of the SimulationDataChangedEvent object.
SimulationDataChangedEvent
Public Constants
 ConstantDefined By
  DATA_CHANGE : String = simulationDataChange
[static] The SimulationDataChangedEvent.DATA_CHANGE constant defines the value of the type property of a data change event object.
SimulationDataChangedEvent
  DATA_CHANGE_APPROVED : String = simulationDataChangeApproved
[static] The SimulationDataChangedEvent.DATA_CHANGE_APPROVED constant defines the value of the type property of a data change approved event object.
SimulationDataChangedEvent
Property Detail
changeDataproperty
changeData:*  [read-only]

The data that has changed. The specific data and format are project defined.


Implementation
    public function get changeData():*
Constructor Detail
SimulationDataChangedEvent()Constructor
public function SimulationDataChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, changeData:* = null)

Creates a new instance of a SimulationDataChangedEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
 
cancelable:Boolean (default = false) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
 
changeData:* (default = null) — The data that has changed. Event listeners can access this information through the changeData property.
Method Detail
clone()method
override public function clone():Event

Duplicates an instance of the event object.

Returns a new SimulationDataChangedEvent object that is a copy of the original instance of the SimulationDataChangedEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event--that is, when you call dispatchEvent(event) from a handler that is handling event.

Returns
Event — A new SimulationDataChangedEvent object that is identical to the original.
toString()method 
override public function toString():String

Returns a string containing all the properties of the SimulationDataChangedEvent object. The string is in the following format:

[SimulationDataChangedEvent type=value bubbles=value cancelable=value eventPhase=value changeData=value]

Returns
String — A string containing all the properties of the SimulationDataChangedEvent object.
Constant Detail
DATA_CHANGEConstant
public static const DATA_CHANGE:String = simulationDataChange

The SimulationDataChangedEvent.DATA_CHANGE constant defines the value of the type property of a data change event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
changeDataThe data that has changed.

DATA_CHANGE_APPROVEDConstant 
public static const DATA_CHANGE_APPROVED:String = simulationDataChangeApproved

The SimulationDataChangedEvent.DATA_CHANGE_APPROVED constant defines the value of the type property of a data change approved event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
changeDataThe data that has changed.