Flash Lite 2.x and 3.0 ActionScript Language Reference

newline constant

Inserts a carriage return character (\r) that generates a blank line in text output generated by your code. Use newline to make space for information that is retrieved by a function or statement in your code.

Example

The following example shows how newline displays output from the trace() statement on multiple lines.

var myName:String = "Lisa", myAge:Number = 30;
trace(myName+myAge);
trace("-----");
trace(myName+newline+myAge);
// output:
Lisa30
-----
Lisa
30

See also

trace function