
escape() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
521
Bugs
The global form of duplicateMovieClip() lacks the following abilities added to MovieClip.
duplicateMovieClip() in Flash 6:
• The global form does not include support for the
initObject parameter (used to initial-
ize properties of the newly created clip).
• The global form does not return a reference to the duplicated clip.
Example
// Copy the ball_mc clip and name the copy ball2_mc
duplicateMovieClip(ball_mc, "ball2_mc", 0);
// Move the new ball2_mc clip over so we can see it
ball2_mc._x += 100;
See Also
MovieClip.duplicateMovieClip(), removeMovieClip(); “Creating instances with
duplicateMovieClip( ),” “How clips generated via duplicateMovieClip( ) are added to the
stack,” and “Method versus global function overlap issues,” in Chapter 13
#endinitclip Pragma
ends a movie clip initialization code block
Flash 6
#endinitclip
Description
The #endinitclip pragma ends a special block of code (begun with #initclip) that initial-
izes a movie clip symbol before any instances of it are created. It can appear only on frame
1 of a movie clip symbol (it causes a compile-time error elsewhere) and must be preceded
by
#initclip. For complete details, see #initclip.
See Also
#initclip
escape() Global Function
encode a string for safe network transfer ...