Special characters, such as \t for tab and \n for newline, can be used within a text string.
package {
import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( );
field.text = "this will n display in the field"; addChild(field); } } }
Related Scripts with Example Source Code in same category :