duplicateMovieClip()
Availability
Flash Player 4.
Usage
duplicateMovieClip(target, newname, depth)
Parameters
The target path of the movie clip to duplicate.
target
A unique identifier for the duplicated movie clip.
newname
A unique depth level for the duplicated movie clip. The depth level is a stacking order for
depth
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.
Returns
A reference to the duplicated movie clip.
Description
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()
duplicateMovieClip()
See also
MovieClip.duplicateMovieClip()
dynamic
Availability
Flash Player 6.
Usage
dynamic class className
{
// class definition here
}
Note: To use this keyword, you must specify ActionScript 2.0 and Flash Player 6 or later in the Flash
tab of your FLA file's Publish Settings dialog box. This keyword is supported only when used in
external script files, not in scripts written in the Actions panel.
action or method to delete a movie clip instance created with
.
,
removeMovieClip()
[ extends superClass ]
[ implements interfaceName [, interfaceName... ] ]
,
MovieClip.removeMovieClip()
dynamic
373
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?