Display \n literally, instead of a newline, you can add an additional backslash just before it : Escape : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Escape »

 

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
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» Escape