Packagecc.cote.metronome
Classpublic class MetronomeEvent
InheritanceMetronomeEvent Inheritance flash.events.Event

MetronomeEvent objects are dispatched by a Metronome to inform listeners of changes in the Metronome's state.

See also

cc.cote.metronome.Metronome


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
countproperty
count:Number  [read-only]

The number ot ticks triggered since the Metronome was started.


Implementation
    public function get count():Number
timeproperty 
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.


Implementation
    public function get time():Number
Constructor Detail
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.

Parameters
type: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.
Method Detail
toString()method
override public function toString():String

Returns a string representation of the event including the most useful properties for debugging.

Returns
String
Constant Detail
STARTConstant
public static const START:String = start

The START constant defines the value of the type property of a start event object.

STOPConstant 
public static const STOP:String = stop

The STOP constant defines the value of the STOP property of a STOP event object.

TICKConstant 
public static const TICK:String = tick

The TICK constant defines the value of the type property of a tick event object.