FLASH HELP
FLASH HELP
Out of context: Reply #1
- Started
- Last post
- 2 Responses
- unfittoprint0
A rare technote: you'll have to see if the server uses Linux or Windows, the method to parse line breaks are different...
ie:
myVars = new LoadVars();
myVars.onLoad = function(sucess) {
if (sucess) {
textLines = String(this.ver).split("\r\n");
// Linux servers [only '\n' works]
if (textLines.length == 1) {
textLines = String(this.var).split("\n");
}
} else {
trace("ooops!");
}
};myVars.load("myVars.txt");