
TextField._y Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
884
|
ActionScript Language Reference
See Also
MovieClip._xscale, TextField._width, TextField._yscale, the TextFormat class
TextField._y Property
vertical location of the text field, in pixels
Flash 6
read/write
theField._y
Description
The floating-point _y property indicates the vertical position of theField’s top border. It is
measured relative to one of two possible coordinate spaces:
•If
theField resides on the main timeline, _y is measured relative to the Stage’s top
edge. For example, a
_y of 20 indicates that theField’s top border is 20 pixels below
the Stage’s top edge;–20 indicates 20 pixels above.
•If
theField resides on a movie clip instance’s timeline, _y is measured relative to the
registration point of that parent instance. For example, a
_y of 20 indicates that
theField’s top border is 20 pixels below its parent instance’s registration point; –20
indicates 20 pixels above.
The
_y property (as with all vertical coordinates in Flash) increases downwards and
decreases upwards—the opposite of the Cartesian coordinate system. Fractional
_y values
are approximated in Flash with antialiasing (blurring).
If
theField is contained by an instance that is scaled and/or rotated, the coordinate space it
inhabits is also scaled and/or rotated. For example, if
theField’s parent