Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

As3 Split on a Carriage Return

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.

like image 358
FoxLift Avatar asked Jul 25 '12 16:07

FoxLift


1 Answers

Try spliting like this

var yourArray:Array = YourString.split(String.fromCharCode(13));
like image 108
João Mosmann Avatar answered Sep 28 '22 04:09

João Mosmann