Flash .txt file
Flash .txt file
Out of context: Reply #9
- Started
- Last post
- 25 Responses
- unfittoprint0
a little know bug/issue
it treats newlines differently it the file is on an UNIX/Linux box or a Windows server.
I made this especially for that type of situation:
myVars.onLoad = function(sucess) {
if (sucess) {
myLines = String(this.myText).split("\r\n...
// Linux servers [only '\n' works]
if (myLines .length == 1) {
myLines = String(this.myText).split("\n");
}
} else {
trace("ooops!");
}
};