MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 572

Actionscript language reference
Table of Contents

Advertisement

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. If you have loaded a
movie clip using
SWF file are not duplicated. This means that you cannot save bandwidth by loading a JPEG or
SWF file and then duplicating the movie clip.
Example
The following example duplicates the
called
circle1_mc
circle_mc.duplicateMovieClip("circle1_mc", this.getNextHighestDepth(), {_x:20,
_y:20});
See also
duplicateMovieClip(),
MovieClip.enabled
Availability
Flash Player 6.
Usage
my_mc.enabled:Boolean
572
Chapter 7: ActionScript for Flash
initObject
method is called. Variables in the parent movie clip are not
are not duplicated if you call
MovieClip.loadMovie()
circle_mc
, at the x, y coordinates 20,20.
MovieClip.removeMovieClip()
is not an object, it is ignored. All properties of
duplicateMovieClip()
or the
MovieClipLoader
movie clip. The code creates the movie clip,
are
initObject
on their parent.
class, the contents of the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents