
MovieClip Class
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
623
MovieClip Class
class-like datatype for main movies and movie clips
Flash 3; enhanced in Flash 4, Flash 5, and Flash 6
Constructor
new MovieClip();
The constructor syntax is used only to create MovieClip subclasses. It does not create an
on-stage movie clip! To create a movie clip instance, use attachMovie(),
createEmptyMovieClip(),orduplicateMovieClip(). MovieClip symbols, on which instances
are based, must be created manually in the Flash authoring tool.
Properties
Movie clip properties provide descriptions of, and control over, various physical features of
movie clips and main movies. As with any object, MovieClip properties are accessed using
the dot or [ ] operators. See “The “Objectness” of Movie Clips” in Chapter 13 for details on
using movie clip properties.
Here are three property-related issues to note:
• Changing a physical property of a MovieClip object places that clip under program-
matic control, breaking the internal timeline’s hold on it. This halts any tween cur-
rently in progress.
• Some MovieClip properties appear to be floating-point numbers but are mapped to
other formats internally. The
_alpha property, for example, is mapped internally to an
integer between 0 and 255. This results in a loss of precision between setting ...