*********************************************************** var showItem = true; // Change this to false to remove var my_cm:ContextMenu = new ContextMenu(menuHandler); my_cm.customItems.push(new ContextMenuItem("Hello", itemHandler)); function menuHandler(obj, menuObj) { if (showItem == false) { menuObj.customItems[0].enabled = false; } else { menuObj.customItems[0].enabled = true; } } function itemHandler(obj, item) { //...put code here... trace("selected!"); } this.menu = my_cm; ********************************************************* I dont know where to place this line of code to get menu where i right click on a name in my listbox in the flash chat. #initclip 3 /* FCFListBoxClass EXTENDS FSelectableListClass IMPLEMENTS FCFListItemClass This class is the manager of the items within it. */ function FCFListBoxClass() { this.itemSymbol = "FCFListItemSymbol"; this.init(); // Test any params for undefined; if so, set defaults this.permaScrollBar = true; for (var i=0; i0) { this.setChangeHandler(this.changeHandler); } } FCFListBoxClass.prototype = new FCFScrollSelectListClass(); Object.registerClass("FCFListBoxSymbol", FCFListBoxClass); // ::: PUBLIC METHODS FCFListBoxClass.prototype.getSelectedIndices = function() { var tmpArray = new Array(); for (var i in this.selected) { tmpArray.push(this.selected[i].sIndex); } return (tmpArray.length>0) ? tmpArray : undefined; } FCFListBoxClass.prototype.getSelectedItems = function() { var indices = this.getSelectedIndices(); var tmpArray= new Array(); for (var i=0; i0) ? tmpArray : undefined; } FCFListBoxClass.prototype.getSelectMultiple = function() { return this.selectMultiple; } FCFListBoxClass.prototype.getRowCount = function() { return this.numDisplayed; } FCFListBoxClass.prototype.setSelectedIndices = function(indexArray) { this.clearSelected(); for (var i=0; i=this.topDisplayed && i