May 2001
Intermediate to advanced
720 pages
23h 24m
English
newline Constant — insert a line break
Flash 4 and later
newline
A newline character.
The constant newline represents a standard line
break character (ASCII 10). It is synonymous with the escape sequence
"\n" and is used to force a line break in a block
of text (usually for display in a text field variable).
Though newline was a function in Flash 4, it
became a constant in Flash 5 and has a syntax that resembles a
property or variable. Note that parentheses are not used following
newline.
myOutput = "hello" + newline + "world";
See Section 4.5.2.2 in Chapter 4
Read now
Unlock full access