Hey, I'm trying to create an Array that stores the instances of inventory slots, then show a message stating the name of the slot and the current item, but is not working properly.

Code:
var slotsArray:Array = new Array(vcam.inventory.slot_01, vcam.inventory.slot_02);

for (var i=0; i < slotsArray.length; i++)
{
	var _currentSlot = slotsArray[i];
	_currentSlot.itemID = "empty";
	
	trace (_currentSlot._name + " " + _currentSlot.itemID);
}

output:
undefined undefined
undefined undefined