TextField._x
761
TextField.wordWrap
Availability
Flash Player 6.
Usage
my_txt
.wordWrap
:Boolean
Description
Property; a Boolean value that indicates if the text field has word wrap. If the value of
wordWrap
is
true
, the text field has word wrap; if the value is
false
, the text field does not have word wrap.
Example
The following example demonstrates how
wordWrap
affects long text in a text field that’s 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. Then return to your ActionScript and add the following line to
the code and test the SWF file again:
my_txt.wordWrap = true;
TextField._x
Availability
Flash Player 6.
Usage
my_txt
._x
:Number
Description
Property; 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º counterclockwise, the enclosed text field inherits a coordinate system
that is rotated 90º counterclockwise. The text field’s coordinates refer to the registration point
position.
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;
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...