字符串去重。
var str:String = "->a->b->a->c->d->d";
protected function splitString(str:String):void
{
var originalStr:Array = str.split('->');
var resLs:ArrayCollection = new ArrayCollection();
for(var i:int=0;i<originalStr.length;i++){
if(!resLs.contains(originalStr[i])){
resLs.addItem(originalStr[i]);
}
}
}