Package | impression.events |
Class | public class SimulationObjectEvent |
Inheritance | SimulationObjectEvent ![]() |
Subclasses | SimulationObjectErrorEvent |
Method | Defined By | ||
---|---|---|---|
SimulationObjectEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance of a SimulationObjectEvent object. | SimulationObjectEvent | ||
clone():Event [override]
Duplicates an instance of the event object. | SimulationObjectEvent | ||
toString():String [override]
Returns a string containing all the properties of the SimulationObjectEvent object. | SimulationObjectEvent |
Constant | Defined By | ||
---|---|---|---|
INITIALIZATION_COMPLETE : String = initializationComplete [static]
The SimulationObjectEvent.INITIALIZATION_COMPLETE constant defines the value of the
type property of a simulation object initialization complete event object. | SimulationObjectEvent | ||
STATE_READY : String = simulationStateReady [static]
The SimulationObjectEvent.STATE_READY constant defines the value of the
type property of a simulation object state ready event object. | SimulationObjectEvent |
SimulationObjectEvent | () | Constructor |
public function SimulationObjectEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance of a SimulationObjectEvent object.
Parameterstype: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.
|
clone | () | method |
override public function clone():Event
Duplicates an instance of the event object.
Returns a new SimulationObjectEvent object that is a copy of the original instance of the SimulationObjectEvent 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
.
Event — A new SimulationObjectEvent object that is identical to the original.
|
toString | () | method |
override public function toString():String
Returns a string containing all the properties of the SimulationObjectEvent object. The string is in the following format:
[SimulationObjectEvent type=value bubbles=value cancelable=value eventPhase=value]
String — A string containing all the properties of the SimulationObjectEvent object.
|
INITIALIZATION_COMPLETE | Constant |
public static const INITIALIZATION_COMPLETE:String = initializationComplete
The SimulationObjectEvent.INITIALIZATION_COMPLETE constant defines the value of the type property of a simulation object initialization complete event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
STATE_READY | Constant |
public static const STATE_READY:String = simulationStateReady
The SimulationObjectEvent.STATE_READY constant defines the value of the type property of a simulation object state ready event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |