A Timer object dispatches a TimerEvent objects whenever the Timer object reaches the interval specified by the Timer.delay property.


Inherited from Event.


Can be created with method new:

Lib.Media.Events.TimerEvent.new(type, bubbles, cancelable)

Creates an Event object with specific information relevant to timer events. Event objects are passed as parameters to event listeners.

type - The type of the event. Event listeners can access this information through the inherited type property.

bubbles - (default = false) - Determines whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.

cancelable - (default = false) - Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.


Created TimerEvent object has methods:

clone()

Creates a copy of the TimerEvent object and sets each property's value to match that of the original.


toString()

Returns a string that contains all the properties of the TimerEvent object.



Event types:

Lib.Media.Events.TimerEvent.TIMER

Defines the value of the type property of a timer event object.

Lib.Media.Events.TimerEvent.TIMER_COMPLETE

Defines the value of the type property of a timerComplete event object.

Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease