This content has been marked as final. Show 6 replies
There are compatability issues when using some escaped characters. This may be your problem especially as it works on your machine (win/mac?) and not the server (linux/unix?)
Its easy to sort I just can't remember which escaped characters to use instead...do a search and I'll have a look too see if we cant sort it out.
I've found it. Sort of. if i use the line:
var table = this.split("\n");
it works on my server. Unfortunately, it doesn't format correctly locally as I have some html tags in the text file and they seem to stuff the loading of the text up.
If it annoys me that much, i'll try and work out a way of determining whether the txt is loading locally or remotely.
Anyway, thanks for the advice.
Theres a different way so it works on both, I'll sort it in a few minutes
try \t otherwise you'll have to do it the \n way I'm afraid
If you escape() the text string each line break should be represented as
If you split() on that value and then unescape() the string, you should get what you are looking for on both your local system and your server.
I've been trying to test the escape() code. I seem to be still getting exactly the same problem.
I think the unix server is sending the txt file with it's own CR/LF code. Therefore, escapiing the txt is simply translating the problem from one text format to another *within* flash. The issue seems to be occuring in the link between the server and flash.