Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split String into Array in Flex

I am getting the output as 0,1,2,3. I need this to be split into array

like image 448
Kevin Avatar asked Jul 14 '09 21:07

Kevin


2 Answers

var a:Array = s.split(",")
like image 113
Vinay Sajip Avatar answered Oct 23 '22 04:10

Vinay Sajip


In addition to Vinay's answer, here is a link to the documentation:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html#split()

like image 40
Richard Szalay Avatar answered Oct 23 '22 05:10

Richard Szalay