Thanks for the reply. I'm just branching into Flex, been working with Flash for a long time and trying to get used to Flex. In regards to the response, my script is breaking on the call to remove the item, so I'm not sure if the index changing is happening like you mentioned. I just tried copying the array collection into an array and gave it a shot using
and got the same range error. Here is the code I'm using, maybe it will help. Thanks
ActionScript Code:
for(var i:int = 0; i < resArray.length; i++)
{
if(resDictionary[resArray[i].Item])
{
trace("already there");
_qty++;
if(resArray[i].Item == resArray[0].Item && i > 0)
{
//tArray.splice(i, 1); tried this and no luck either
resArray.removeItemAt(0);
}
}
}