textfield multiline....
- Started
- Last post
- 2 Responses
- gabriel2
For some reason I'm unable to change the multiline property of a textfield object using actionscript. Anyone run across this problem?
thanks!
- gabriel20
*bump
- jkosoy0
my_txt.multiline:Boolean
Description
Property; indicates whether the text field is a multiline text field. If the value is true, the text field is multiline; if the value is false, the text field is a single-line text field.Example
The following example creates a multiline text field called fontList_txt that displays a long, multiline list of fonts.var font_array:Array = TextField.getFontList().sort();
this.createTextField("fontList_t... this.getNextHighestDepth(), 10, 10, 240, 320);
fontList_txt.border = true;
fontList_txt.wordWrap = true;
fontList_txt.multiline = true;
fontList_txt.text = font_array.join("\n");//////////////////////////////
You might need to set a new textformat, too.