This is a function who is supposed to remove an item from the store item. I can't understand it. All I know from this function is that it removes only one item(_collection.splice(i, 1);) when it founds the loops stops (break). The all class was an Array Class and there was an AddItem function which I understand without any issue.
Public function removeItem(item:StoreItem): void { var i:uint; for( i = 0; i < _collection.length; i++) { if (collection [i] == item) { _collection.splice(i, 1); break; } }