What is wrong with my script

Hello there. I have some functions that are creating a table with items and I have the possibility to delete that elements.
My table appear if I press a button. And my elements are represented by arrays.
My problem is that if I press the button twice, it is multiplying my elements from the table. It is something like this:
I press, it opens:
item 1
item 2
item 3
I press again:
item 1
item 2
item 3
item 1
item 2
item 3
My script that opens the table is this:
var _itemArray:Array = new Array(“item_1”, “item_2”, “item_3”);
var _priceArray = [10, 20, 30];
var _quantityArray = [2, 3, 4];

view_mc.onRelease = function() {
if (_itemArray.length > 0) {
shopList_mc._x = 35;

for (var i = 0; i<_itemArray.length; i++) {
shopList_mc.addItem(_itemArray*,_priceArray*,_quantityArray*);
}
shopList_mc.renderList();
} else {
return 0;
}
}

Thank you.