Now that is definitely a hack/Kludge. Is there no other way? Maybe I should file a feature request?
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Keep track of rollover events? > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of valdhor > Sent: Wednesday, August 06, 2008 8:36 AM > To: [email protected] > Subject: [flexcoders] Re: Add a context menu to a menubar item > > > > Ok, I have created a custom itemRenderer which displays my context > menu perfectly. > > Now, how do I get at the menu item data that the context menu came from. > > IOW, I left click on my menu bar which drops down a menu; I then right > click on a menu item (Let's say it is "Show some Cool Stuff") which > brings up my custom context menu. I then left click on my custom > context menu item. This generates a ContextMenuEvent.MENU_ITEM_SELECT > event which I have an eventListener for. The trouble is, there is > nothing in that event that lets me know what the original item was > that was right clicked on. > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > Custom itemRenderer > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of valdhor > > Sent: Tuesday, August 05, 2008 9:05 AM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Add a context menu to a menubar item > > > > > > > > Either this is really easy and I've missed it or it's really quite > > difficult. > > > > I have a MenuBar that is created from an ArrayCollection that is > > returned from a RemoteObject call: > > > > <mx:MenuBar id="menuBar" itemClick="menuHandler(event)" > > dataProvider="{menuBarCollection}" /> > > > > How would I get at each item so I can add a context menu to each menu > > item? > > >

