![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 4.
duplicateMovieClip(
target
,
newname
,
depth
)
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 SWF files on occupied depths.
A reference to the duplicated movie clip.
Function; 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 (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()
.
MovieClip.duplicateMovieClip()
, removeMovieClip()
, MovieClip.removeMovieClip()
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |