![MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference Download Page 51](http://html.mh-extra.com/html/macromedia/flash-8-actionscript-2-0-language/flash-8-actionscript-2-0-language_reference_687537051.webp)
Global Functions
51
You must clear the interval when you have finished using the function. Create a button called
clearInt_btn
and use the following ActionScript to clear
setInterval()
:
clearInt_btn.onRelease = function(){
clearInterval( intervalID );
trace("cleared interval");
};
See also
setInterval function
duplicateMovieClip function
duplicateMovieClip(target:String, newname:String, depth:Number) : Void
duplicateMovieClip(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()
function or method to delete a movie clip instance created with
duplicateMovieClip()
.
Availability:
ActionScript 1.0; Flash Player 4
Parameters
target
:Object
- The target path of the movie clip to duplicate. This parameter can be either
a String (e.g. "my_mc") or a direct reference to the movie clip instance (e.g. my_mc).
Parameters that can accept more than one data type are listed as type
Object
.
newname
:String
- A unique identifier for the duplicated movie clip.
depth
:Number
- A unique depth level for the duplicated movie clip. The depth level is a
stacking order for duplicated movie clips. This stacking order is similar to the stacking order
of layers in the Timeline; movie clips with a lower depth level are hidden under clips with a
higher stacking order. You must assign each duplicated movie clip a unique depth level to
prevent it from replacing SWF files on occupied depths.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...