You could make a
context menu... When you right click the movie clip called
item a menu with the options that you want will apear... I made a option called Get Item... If you choose it the
item movie clip isn't visible on the stage and an instance of the movie clip called
dropItem apears... The
itemMoved movie clip is in a movie clip called
itemL that has the graphic of the list... When you right click it a menu with the option Drop Item apears...
The set up:
Make a movie clip with your item and give it the name
item...
Make a movie clip with a graphic that looks like a list... Give it the instance name
itemL... Make an instance of the
item movie clip and put it in the
itemL movie clip where you want it to apear in the list when a user clicks Get Item... Give it the instance name
itemMoved...
Put this code on the main timeline on frame 1 or where are the item and the list:
Code:
var itemsMenu = new ContextMenu();
itemsMenu.hideBuiltInItems();
var getItems = new ContextMenuItem("Get item", itemsGet);
itemsMenu.customItems.push(getItems);
itemsMenu.onSelect = menuHandler;
item.menu = itemsMenu;
function itemsGet(){
item._visible = false;
itemL.itemMoved._visible = true;
}
itemL._visible = false;
itemL.itemMoved._visible = false;
itemBtn.onRelease = function() {
if (itemL._visible == false) {
itemL._visible = true;
} else {
itemL._visible = false;
}
}
stop();
Put this code in the first frame of the
itemL movie clip:
Code:
var itemsMenu = new ContextMenu();
itemsMenu.hideBuiltInItems();
var dropItems = new ContextMenuItem("Drop item", itemsDrop);
itemsMenu.customItems.push(dropItems);
itemsMenu.onSelect = menuHandler;
itemMoved.menu = itemsMenu;
function itemsDrop(){
_parent.item._visible = true;
itemMoved._visible = false;
}
If you are interested making what I told you, but you didn't understand how to do that, I could give you the .fla file...