str = '1,2,3,4,56,7' my_ar = str.split(',') s = new Number(0) for (i=0; i< my_ar.length; i++){ s+=my_ar[i]; } trace(s)