newline
Availability
Flash Player 4.
Usage
newline
Parameters
None.
Returns
Nothing.
Description
Constant; inserts a carriage return character (
generated by your code. Use
function or statement in your code.
Example
The following example shows how
multiple lines.
var myName:String = "Lisa", myAge:Number = 30;
trace(myName+myAge);
trace("-----");
trace(myName+newline+myAge);
/* output:
Lisa30
-----
Lisa
30
*/
186
Chapter 5: ActionScript Core Language Elements
ActionScript Core Language Elements
) that generates a blank line in text output
\n
to make space for information that is retrieved by a
newline
writes output from the
newline
CHAPTER 5
statement on
trace()
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?