?? Mas info??
Pues ya esta haz un split a la cadena.. si no te queda claro esto aqui va un ejemplo
Código xml:
Ver original<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init(event)">
<mx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function init(event:FlexEvent):void
{
var some:String = "0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15";
var arrayNum:Array = StringToArray( some, "-" );
trace("| Total : " + arrayNum.length)
var last:Number = 0;
var value:Number = 0;
for each ( var num:String in arrayNum )
{
value = Number(num);
trace(value + last)
last = value;
}
}
protected function StringToArray(source:String, spacer:String):Array
{
return source.split( spacer );
}
]]>
</mx:Script>
</mx:Application>
La funcion importante es
StringToArray
Saludos!!