Display \n literally, instead of a newline, you can add an additional backslash just before it
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace("\\n"); // Displays: \\n } } }