Clearinterval Function; Duplicatemovieclip Function - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

clearInterval function

clearInterval(intervalID:Number) : Void
Cancels an interval created by a call to setInterval().
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
intervalID:Number
Example
The following example first sets and then clears an interval call:
function callback() {
trace("interval called: "+getTimer()+" ms.");
}
var intervalID:Number = setInterval(callback, 1000);
You need to clear the interval when you have finished using the function. Create a button
called
clearInt_btn
clearInt_btn.onRelease = function(){
clearInterval( intervalID );
trace("cleared interval");
};
See also
setInterval function

duplicateMovieClip function

duplicateMovieClip(target:String, newname:String, depth:Number) :
VoidduplicateMovieClip(target:MovieClip, newname:String, depth:Number) :
Void
Creates an instance of a movie clip while the SWF file is playing. The playhead in duplicate
movie clips always starts at Frame 1, regardless of where the playhead is in the original movie
clip. Variables in the original movie clip are not copied into the duplicate movie clip. Use the
removeMovieClip()
duplicateMovieClip()
Availability: ActionScript 1.0; Flash Lite 1.0
42
ActionScript language elements
- A numeric (integer) identifier returned from a call to
and use the following ActionScript to clear
function or method to delete a movie clip instance created with
.
setInterval()
:
setInterval()
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash lite 2

Table of Contents