This is some fine as3 code !!

I'm using your code for my game project, and it's very useful!! thx!

I could adapt it without too much problems! (I'm just starting to code in as3- started this Oct)

I arrive where i'm writing the hitTest Items in level (player run to an item in the item container (your class/movieclip "level")) and i want to check if there's empty slots in the inventory when that happens.
So I found you're function in Inventory.as :

public function findEmptySlot():Slot
But it keeps returning that it's FULL.

my inventory has 6 slots and i1 = empty, i2 = full, i3 = full, i4 = full, i5 = empty, i6 = empty. So it should return "i1" or [Object Slot] and close the function.

I verified that i had the good inventory variable from the DisplayManager (and not just the class Inventory) by using the hasitem():Boolean function from Slot.as :

var _empty_Slot:Slot = _inventory.findEmptySlot();
trace (_empty_Slot);
var _Slot1:Slot = _inventory.getSlot("i1");
trace (_Slot1.hasItem());
var _Slot2:Slot = _inventory.getSlot("i2");
trace (_Slot2.hasItem());
_empty_Slot returns null
_Slot1 returns false
_Slot2 returns true

so I'm confused

EDIT::: Here, just before posting, I figured it out!!!

Seems like the file Inventory of your package (at least the one I have, the original copy not the one I've been modifying.) has an error there:

CLASS: com.freeactionscript.inventorySystem.display.conta iner.Inventory

around line 140.

public function findEmptySlot():Slot
{
var i:int;
var tempSlot:Slot;

for (i = 0; i < _slots.length; i++)
{
tempSlot = _slots[i] as Slot;

if (tempSlot.hasItem == false)
{
return tempSlot;
}

}

trace("Inventory Full! No empty slots.");
return null;
}
I replace it by tempSlot.hasItem() == false

Check if your file on your site has this or not.

There, I continue my work, enjoying your package.. !! if i found other errors I'll post them here or send you an pm?

Cheers!