cadena = "esto-es-una-cadena-mas"; res_array = cadena.split("-"); for (var a in res_array) { trace(a+" => "+res_array[a]); }