dynamic
373
duplicateMovieClip()
Availability
Flash Player 4.
Usage
duplicateMovieClip(
target
,
newname
,
depth
)
Parameters
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.
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()
action or method to delete a movie clip instance created with
duplicateMovieClip()
.
See also
MovieClip.duplicateMovieClip()
,
removeMovieClip()
,
MovieClip.removeMovieClip()
dynamic
Availability
Flash Player 6.
Usage
dynamic class
className
[
extends
superClass
]
[ implements
interfaceName
[,
interfaceName
... ] ]
{
// 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.
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...