newline Constant

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By 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



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net