View Full Version : Duplicating symbols through actionscript
12-26-2004, 11:47 PM
Is it possible to duplicate a symbol using actionscript?
The duplicate movieclip method works very similar to the attachMovie method with the exception that any code on the movieclip is passed along to the duplicated clips. The attachMovie method does not pass existing code on. To duplicate a movieclip....
target The target path of the movie clip to duplicate.
newname A unique identifier for the duplicated movie clip.
depth A unique depth level for the duplicated movie clip. The depth level is a stacking order for duplicated movie clips. This stacking order is much like 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 movies on occupied depths.
Action; creates an instance of a movie clip while the movie is playing. The playhead in duplicate movie clips always starts at Frame 1, regardless of where the playhead is in the original (or "parent") movie clip. 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. Use the removeMovieClip action or method to delete a movie clip instance created with duplicateMovieClip.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.