See also
startDrag()
MovieClip.duplicateMovieClip()
Availability
Flash Player 5.
Usage
my_mc.duplicateMovieClip(newname, depth [,initObject])
Parameters
A unique identifier for the duplicate movie clip.
newname
A unique number specifying the depth at which the SWF file specified is to be placed.
depth
(Supported for Flash Player 6 and later.) An object containing properties with
initObject
which to populate the duplicated movie clip. This parameter allows dynamically created movie
clips to receive clip parameters. If
are copied into the new instance. The properties specified with
initObject
available to the constructor function. This parameter is optional.
Returns
A reference to the duplicated movie clip.
Description
Method; creates an instance of the specified movie clip while the SWF file is playing. Duplicated
movie clips always start playing at Frame 1, no matter what frame the original movie clip is on
when the
duplicateMovieClip()
copied into the duplicate movie clip. Movie clips that have been created using
duplicateMovieClip()
If the parent movie clip is deleted, the duplicate movie clip is also deleted. .
See also
duplicateMovieClip()
498
Chapter 12: ActionScript Dictionary
initObject
method is called. Variables in the parent movie clip are not
are not duplicated if you call
,
MovieClip.removeMovieClip()
is not an object, it is ignored. All properties of
duplicateMovieClip()
are
initObject
on their parent.
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers