
#initclip Pragma
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
549
Usage
–Infinity is normally used in place of its more verbose equivalent Number.NEGATIVE_
INFINITY
.
See Also
Infinity, isFinite( ), NaN, Number.MAX_VALUE, Number.NEGATIVE_INFINITY; “Special Values of
the Number Datatype,” in Chapter 4
#initclip Pragma
starts a movie clip initialization code block
Flash 6
#initclip order
Arguments
order A nonnegative integer specifying the execution order of this #initclip block
relative to all other
#initclip blocks in the movie. Those with lower order
numbers are executed before those with higher ones. Multiple #initclip
blocks can share a single order position.
Description
The #initclip pragma starts a special block of code that allows you to perform initializa-
tion for a movie clip symbol before any instances of it are created. As explained in
Chapter 14,
#initclip typically is used to create so-called components, which are
subclasses of the MovieClip class that have been made self-contained for easy use by
nonprogrammers. Therefore, the
#initclip code block typically is used to register a movie
clip symbol with an ActionScript class (i.e., to create a subclass of the MovieClip class, as
shown in Chapter 14). An
#initclip block can appear only on frame 1 of a movie clip
symbol (it causes a compile-time error ...