According to "ActionScript 2.0 Language Reference" the newline constant "Inserts a carriage return character (\r)". But it should return a newline character (\n).
var my_str:String = newline; // [Debug] > [List Variables]: Variable _level0.my_str = "\n" However the return value is changed depending on a value which is added to the constant with + operator. This is very odd. My environment is Flash 8/Mac OS X.4.3. var empty_str = ""; var my0_str = newline; var my1_str = ""+newline; var my2_str = empty_str+newline; var my3_str = ""+newline+empty_str; var my4_str = empty_str+newline+""; var my5_str = 0+newline; var my6_str = String(0)+newline; var my7_str = true+newline; var my8_str = undefined+newline; var my9_str = NaN+newline; // [Debug] > [List Variables]: Variable _level0.my0_str = "\n" Variable _level0.my1_str = "\r" Variable _level0.my2_str = "\n" Variable _level0.my3_str = "\r" Variable _level0.my4_str = "\n" Variable _level0.my5_str = "0\r" Variable _level0.my6_str = "0\n" Variable _level0.my7_str = "true\r" Variable _level0.my8_str = "undefined\n" Variable _level0.my9_str = "NaN\n" Regards, Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My books<http://www.FumioNonaka.com/Books/index.html> Flash community<http://F-site.org/> _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders