As3 Split on a Carriage Return

actionscript-3, carriage-return, flash, split, string

Solution

Try spliting like this

var yourArray:Array = YourString.split(String.fromCharCode(13));

Problem

Can anyone tell me how to use the split() function in as3 to split Strings with Carriage Returns? This is usually done with " \n ", but it doesent seem to work in this case, with or without de quotes.

Original source