Flash Lite 2.x ActionScript Language Reference |
|
|
|
| ActionScript language elements > Constants > 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.
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
|
|
|
|