8 Replies Latest reply on Jun 28, 2011 1:15 AM by PaddyMc2010

    String to Array Question


      Hi Guys


      Easy one im sure for any one with flex experience.


      i have the string below.



      I need to convert this into

      favorite1 == test1

      favorite2 == test2


      My thininking was i could use a for loop, iterate over the string and count the commas and try to append a \n on the third one?  But cant get this to work.  Could anyone give me any tips?


      Thanks in advance, i know this is an easy one.