A-C > clearInterval |  |

clearInterval

clearInterval, setInterval

Availability

Flash Player 6.

Usage

    clearInterval( intervalID )

Parameters

`intervalID` An object returned from a call to the`setInterval` function.

Returns

Nothing.

Description

Action; clears a call to the `setInterval` function.

Example

The following example first sets and then clears an interval call:

    function callback() {
            trace("interval called");
    }
    var intervalID;
    intervalID = setInterval( callback, 1000 );

    // sometime later
    clearInterval( intervalID );

See also

    setInterval