Wordwrap (Textfield.wordwrap Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

this.createTextField("width_txt", this.getNextHighestDepth(), 10, 10, 30,
20);
width_txt.border = true;
width_txt.maxChars = 3;
width_txt.type = "input";
width_txt.text = my_txt._width;
width_txt.onChanged = function() {
my_txt._width = this.text;
}
this.createTextField("height_txt", this.getNextHighestDepth(), 70, 10, 30,
20);
height_txt.border = true;
height_txt.maxChars = 3;
height_txt.type = "input";
height_txt.text = my_txt._height;
height_txt.onChanged = function() {
my_txt._height = this.text;
}
When you test the example, try entering new values into
change the dimensions of
See also
_height (TextField._height property)

wordWrap (TextField.wordWrap property)

public wordWrap :
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 Lite 2.0
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;
.
my_txt
Boolean
wordWrap
and
width_txt
, the text field does not have word
false
affects long text in a text field that is
to
height_txt
is
wordWrap
TextField
691

Advertisement

Table of Contents
loading

Table of Contents