Max-Mov > MovieClip.duplicateMovieClip

MovieClip.duplicateMovieClip

Syntax

anyMovieClip.duplicateMovieClip(newname, depth);

Arguments

newname A unique identifier for the duplicate movie clip.

depth A number specifying the depth level where the movie specified is to be placed.

Description

Method; creates an instance of the specified movie clip while the movie is playing. Duplicated movie clips always start playing at frame 1, no matter what frame the original movie clip is on when the duplicateMovieClip method is called. Variables in the parent movie clip are not copied into the duplicate movie clip. If the parent movie clip is deleted the duplicate movie clip is also deleted. Movie clips added with duplicateMovieClip can be deleted with removeMovieClip action or method.

Player

Flash 5 or later.

See also

removeMovieClip
MovieClip.removeMovieClip