The backslash character has a special function when used in a string literal
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace("\\"); // displays: \ } } }