Interesting. How about the following statements, which don't include any empty strings:

// Frame action in the main timeline
var my0_str:String = newline;
my0_str += newline;
var my1_str:String = newline+newline;

// [Debug] > [List Variables]:
Variable _level0.my0_str = "\n\n"
Variable _level0.my1_str = "\r\r"

Flash 8.0/Mac OS X.4.6
_____
ryanm wrote:
Well, it seems inconsistant, but it's not really unexpected. Without the empty string both hard returns are appended to the end of the previous line, which isn't technically correct, but makes sense in context. With the empty string there is an empty line (your new line), so a line feed is used to go to the next line. Hard return ends a span of text by breaking to the next line. Line feed passes over an empty line without moving the cursor, which is why a hard return (a.k.a. a "carriage return") is needed at the end of a span of text. It's old-school logic based on how it would render on paper. If you used a line feed without a carriage return, the "proper" way to render it would be to move down one line without moving to the first column. Without the empty string, though, there is no new line to pass over, so the html kluge is to simply hard return again.

Good luck,

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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to