As for the two line breaks between paragraphs. Its because windows newlines are \r
and so flash interprets that as two line breaks.
I have written quite a bit on this subject over at actionscript.org
function loadText(txtFile, target) {
myVars = new LoadVars();
myVars.load(txtFile);
myVars.onData = function(raw) {
var tmpText = "";
if (raw.indexOf("\\r\
") > -1) {
tmpText = raw.split("\\r\
").join("\
");
}
else tmpText = raw;
target.text = tmpText;
}
}
loadText("myText.txt", _root.myText);
So this is my method and works quite nice. Keep in mind you need to have a text file that is just raw text, for instance
Yo I am some text with windows line breaks, yes I am Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
v
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
Yo I am some text with windows line breaks, yes I am
v
So there you go, this is my method for taking care of that problem.