Imported text strings have new lines where they shouldn't
Using AS3 in flash CS4
Hi i have some imported text from a tab delimited/seperated text file (.txt).
I have split the values into an array using .split('\n') .split('\t')
I have stored the imported data into an array where each column has a new index and the properties of each row can be gained from array
This all works fine however some of the separated strings are formatted incorrectly as they take up 2 lines instead of one.
The first string in each line in the original text file is imported into flash with a new line above it. I.e: "Property1" in the original tab delimited/seperated text file is stored in flash as "
Property1" with a new line above it. I need to get rid of this new line in order to appropriately display the text in text fields.
Can someone please help.
P.S: I do not want to change my importing file format from a tab delimited text file to something like xml so please don't suggest it.
