Duplicatemovieclip Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

You must clear the interval when you have finished using the function. Create a button called
and use the following ActionScript to clear
clearInt_btn
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()
duplicateMovieClip()
Availability: ActionScript 1.0; Flash Player 4
Parameters
- The target path of the movie clip to duplicate. This parameter can be either
target:Object
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
- A unique identifier for the duplicated movie clip.
newname:String
- A unique depth level for the duplicated movie clip. The depth level is a
depth:Number
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.
function or method to delete a movie clip instance created with
.
:
setInterval()
.
Object
Global Functions
51

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents