03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

See also<br />

_ymouse (TextField._ymouse property)<br />

_xscale (TextField._xscale property)<br />

public _xscale : Number<br />

Determines the horizontal scale of the text field as applied from the registration point of the<br />

text field, expressed as a percentage. The default registration point is (0,0).<br />

Example<br />

The following example scales the my_txt instance when you click the scaleUp_btn <strong>and</strong><br />

scaleDown_btn instances.<br />

this.createTextField("my_txt", 99, 10, 40, 100, 22);<br />

my_txt.autoSize = true;<br />

my_txt.border = true;<br />

my_txt.selectable = false;<br />

my_txt.text = "Sample text goes here.";<br />

scaleUp_btn.onRelease = function() {<br />

my_txt._xscale = 2;<br />

my_txt._yscale = 2;<br />

}<br />

scaleDown_btn.onRelease = function() {<br />

my_txt._xscale /= 2;<br />

my_txt._yscale /= 2;<br />

}<br />

See also<br />

_x (TextField._x property), _y (TextField._y property), _yscale<br />

(TextField._yscale property)<br />

_y (TextField._y property)<br />

public _y : Number<br />

The y coordinate of a text field relative to the local coordinates of the parent movie clip. If a<br />

text field is in the main Timeline, then its coordinate system refers to the upper left corner of<br />

the Stage as (0, 0). If the text field is inside another movie clip that has transformations,(the<br />

text field is in the local coordinate system of the enclosing movie clip. Thus, for a movie clip<br />

rotated 90 degrees counterclockwise, the enclosed text field inherits a coordinate system that<br />

is rotated 90 degrees counterclockwise. The text field's coordinates refer to the registration<br />

point position.<br />

TextField 653

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!