This content has been marked as final. Show 4 replies
putting the lines in an array will probably make sorting easier. what separates one line from the next?
a line break
I'd also like to validat text in an input field but it doesn't seem like Actionscript has any parsing capabilities if, say, I wanted to take out any spaces in a string.
flash has pretty good parsing capabilities and certainly can remove and replace characters like spaces. you'll use the string and array methods for most non-basic parsing.
to assign your lines to an array use the split() method and your line break "\n" as its parameter. you can then use the sort method of arrays to sort you array.