Clearinterval() - MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference

Server-side actionscript language reference
Table of Contents

Advertisement

clearInterval()

Availability
Flash Communication Server MX 1.0.
Usage
clearInterval(intervalID)
Parameters
A unique ID returned by a previous call to the
method.
intervalID
setInterval()
Returns
Nothing.
Description
Method (global); cancels a time-out that was set with a call to the
method.
setInterval()
Example
The following example creates a function named
and passes it to the
callback
method, which is called every 1000 milliseconds and outputs the message
setInterval()
"interval called." The
method returns a unique identifier that is assigned to
setInterval()
the variable
. The identifier allows you to cancel a specific
call.
intervalID
setInterval()
In the last line of code, the
variable is passed to the
method to
intervalID
clearInterval()
cancel the
call:
setInterval()
function callback(){
trace("interval called");
}
var intervalID;
intervalID = setInterval(callback, 1000);
// sometime later
clearInterval(intervalID);
46
Server-Side ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents