Packagecc.cote.jmulator
Classpublic class EmulatorEvent
InheritanceEmulatorEvent Inheritance flash.events.Event

An EmulatorEvent object is dispatched whenever the status of an input on the physical board changes. The name of the dispatched event is exactly the name of the input (as labeled on the board itself).



Public Properties
 PropertyDefined By
  input : String
A string that specifies which input triggered the event.
EmulatorEvent
  status : Boolean
A boolean that specifies if the input was activated (true) or deactivated (false)
EmulatorEvent
Public Methods
 MethodDefined By
  
EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs an EmulatorEvent object.
EmulatorEvent
  
toString():String
[override] Utility function overriding the default toString() function to include specific properties such as 'status' and 'input'.
EmulatorEvent
Property Detail
inputproperty
public var input:String

A string that specifies which input triggered the event. This is useful, for example, when using the INPUT_ANY event to differentiate which input actually was the trigger. In any other cases, it is the same as the event type.

statusproperty 
public var status:Boolean

A boolean that specifies if the input was activated (true) or deactivated (false)

Constructor Detail
EmulatorEvent()Constructor
public function EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructs an EmulatorEvent object.

Parameters
type:String — The type of the event. Usually matches the name of the board input label
 
status:Boolean — The boolean status of the event. True means the input was activated (on) and false means the input was deactivated (off)
 
input:String — The board label name of the input that triggered the event. This is the same as the 'type' unless you are using the INPUT_ANY event
 
bubbles:Boolean (default = false) — Indicates whether an event is a bubbling event.
 
cancelable:Boolean (default = false) — Indicates whether the behavior associated with the event can be prevented.
Method Detail
toString()method
override public function toString():String

Utility function overriding the default toString() function to include specific properties such as 'status' and 'input'.

Returns
String — A string representation of the event