Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
clearInterval

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

To Table of Contents Back to Previous document Forward to next document