> 1.) I have a customDataGrid object, which has metadata tag: [Event(name="menuClick",type="mx.events.MenuEvent")] >
Use the string name: this.mycustomdg.addEventListner("menuClick", handleMenuEvent); OR Create the static string MENU_CLICK somewhere and call it with that.