ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
newline Constant Flash 4

insert a line break

newline

Returns

A newline character.

Description

The constant newline represents a standard line break character (ASCII 10). It is synonymous with the escape sequence "\n" or the HTML tag <BR> and is used to force a line break in a block of text (usually for display in a text field variable).

Example

myOutput = "hello" + newline + "world";

See Also

TextField.htmlText, TextField.text; Section 4.5.2.2

    Категории