Inventory

I need help badly.

I want to make an inventory, that pops up when i press I.

I want to beable to select items and such, and equip them to the player.

Like an example

I picked up a sword and want to attach it to the persons weapon slot

i use flash mx professional 2004