TimerEvery

TimerEvery — attaches an event handler to an "every" timer.

Syntax

TimerEvery (seconds, fn)
    

Arguments

seconds

A number of seconds.

fn

A function or method call.

Returns

An integer that is a timer ID number.

Description

This method sets an every timer that that fires periodically every number of seconds, causing the fn function or method to execute. This method also creates a unique, sequential ID number for the timer, appends that number to the class's ._TimerIDs list, and returns that same timer ID number.