Working with Movie Clips > Using actions and methods to control Timelines > Duplicating and removing movie clips

Duplicating and removing movie clips

You can create or remove movie clip instances as your movie is playing using duplicateMovieClip or removeMovieClip, respectively. The duplicateMovieClip action and method dynamically create a new instance of the movie clip, assigning it a new instance name and giving it a depth. A duplicated movie clip always starts at frame 1 even if the original movie clip was on another frame when duplicated, and is always on top of all predefined movie clips placed on the Timeline. Variables are not copied into the duplicate movie clip.

To delete a movie clip you created with duplicateMovieClip, use removeMovieClip. Duplicated movie clips also are removed if the parent movie clip is deleted.