
MovieClip._y Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
709
When the current width of mc is the same as its original width, _xscale is 100. An _xscale
of 200 doubles mc’s width relative to its original width. An _xscale of 50 halves mc’s width
relative to its original width.
The
_xscale property scales a clip proportionately on the right and left sides of its registra-
tion point. To size a clip from one side only, place all of the clip’s content on one side of
the registration point in the clip’s symbol (this is a useful technique for creating horizontal
preloader bars). When a clip’s
_xscale is set to a negative value, the clip is flipped horizon-
tally, as if across a vertical mirror running through its registration point (i.e., it becomes a
mirror image of itself), after which the negative value is treated as a positive. To flip a clip
horizontally without resizing it, set the clip’s
_xscale to –_xscale.
Example
// Double the width of ball_mc (the height remains unchanged)
ball_mc._xscale *= 2;
// Create a mirror image of ball_mc
ball_mc._xscale = –ball_mc._xscale;
See Also
MovieClip._yscale
MovieClip._y Property
vertical location of a clip or movie, in pixels
Flash 4
read/write
mc._y
Description
The floating-point _y property always indicates the vertical position of mc’s registration
point, but ...