Package | cc.cote.metronome |
Class | public class MetronomeEvent |
Inheritance | MetronomeEvent ![]() |
MetronomeEvent
objects are dispatched by a Metronome
to inform
listeners of changes in the Metronome
's state.
See also
Property | Defined By | ||
---|---|---|---|
count : Number [read-only] The number ot ticks triggered since the Metronome was started. | MetronomeEvent | ||
time : Number [read-only]
The time at which the event occured expressed as the number of milliseconds elapsed
since midnight on January 1st, 1970, universal time. | MetronomeEvent |
Method | Defined By | ||
---|---|---|---|
MetronomeEvent(type:String, count:Number, time:Number)
Creates a MetronomeEvent object holding information about the event such as when it
occured. | MetronomeEvent | ||
toString():String [override]
Returns a string representation of the event including the most useful properties for
debugging. | MetronomeEvent |
Constant | Defined By | ||
---|---|---|---|
START : String = start [static]
The START constant defines the value of the type property of a
start event object. | MetronomeEvent | ||
STOP : String = stop [static]
The STOP constant defines the value of the STOP property of a
STOP event object. | MetronomeEvent | ||
TICK : String = tick [static]
The TICK constant defines the value of the type property of a
tick event object. | MetronomeEvent |
count | property |
count:Number
[read-only] The number ot ticks triggered since the Metronome was started.
public function get count():Number
time | property |
time:Number
[read-only] The time at which the event occured expressed as the number of milliseconds elapsed since midnight on January 1st, 1970, universal time.
public function get time():Number
MetronomeEvent | () | Constructor |
public function MetronomeEvent(type:String, count:Number, time:Number)
Creates a MetronomeEvent object holding information about the event such as when it occured.
Parameterstype:String — The type of the event.
| |
count:Number — The number ot ticks triggered by a the Metronome object dispatching this
event since it was started.
| |
time:Number — The time at which the event occured (in milliseconds since January 1st, 1970
UTC.
|
toString | () | method |
override public function toString():String
Returns a string representation of the event including the most useful properties for debugging.
ReturnsString |
START | Constant |
public static const START:String = start
The START
constant defines the value of the type
property of a
start
event object.
STOP | Constant |
public static const STOP:String = stop
The STOP
constant defines the value of the STOP
property of a
STOP
event object.
TICK | Constant |
public static const TICK:String = tick
The TICK
constant defines the value of the type
property of a
tick
event object.