Wordwrap (Textfield.wordwrap Property); X (Textfield._X Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

wordWrap (TextField.wordWrap property)

public wordWrap : Boolean
A Boolean value that indicates if the text field has word wrap. If the value of
, the text field has word wrap; if the value is
true
wrap.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example demonstrates how
created at runtime.
this.createTextField("my_txt", 99, 10, 10, 100, 200);
my_txt.text = "This is very long text that will certainly extend beyond the
width of this text field";
my_txt.border = true;
Test the SWF file in Flash Player by selecting Control > Test Movie. Then return to your
ActionScript and add the following line to the code and test the SWF file again:
my_txt.wordWrap = true;

_x (TextField._x property)

public _x : Number
An integer that sets the x coordinate of a text field relative to the local coordinates of the
parent movie clip. If a text field is on the main Timeline, then its coordinate system refers to
the upper left corner of the Stage as (0, 0). If the text field is inside a movie clip that has
transformations, the text field is in the local coordinate system of the enclosing movie clip.
Thus, for a movie clip rotated 90 degrees counterclockwise, the enclosed text field inherits a
coordinate system that is rotated 90 degrees counterclockwise. The text field's coordinates
refer to the registration point position.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates a text field wherever you click the mouse. When it creates a
text field, that field displays the current x and y coordinates of the text field.
this.createTextField("coords_txt", this.getNextHighestDepth(), 0, 0, 60,
22);
coords_txt.autoSize = true;
coords_txt.selectable = false;
coords_txt.border = true;
1224
ActionScript classes
, the text field does not have word
false
affects long text in a text field that is
wordWrap
is
wordWrap

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF