textfield multiline....

Out of context: Reply #2

  • Started
  • Last post
  • 2 Responses
  • 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.

View thread