hi,
im tryng to call a function with a argument in the ContextMenuItem class.
code:
function down(id){
txt.text = id;
//trace(id);
};
var my_cm = new ContextMenu();
menuItem_cmi = Array();
for (i=1;i<6;i++){
menuItem_cmi* = new ContextMenuItem("product: "+i, down(i));
my_cm.customItems.push(menuItem_cmi*);
}
my_cm.hideBuiltInItems();
cart.menu = my_cm;
It seems that when ever I try to send an argument with the down function, it simpley dont work and without it, it does work