You might have to make sure the context menu is set on the internal
TextField.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sbx33
Sent: Thursday, June 26, 2008 4:44 PM
To: [email protected]
Subject: [flexcoders] Re: Right click context menus

 

Unfortunately, I'm not sure what to even try. If anyone else has any
ideas, please let me know. Thanks!

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> I can't find where in my code I am doing it, but I am. I don't
remember
> caring about the distinction between the two types of context menus.
So
> just try it and it will probably work.
> 
> - Daniel Freiman
> 
> On Tue, Jun 24, 2008 at 12:46 PM, sbx33 <[EMAIL PROTECTED]> wrote:
> 
> > Hello!
> >
> > Per the Flex documentation:
> >
> > "Flash Player has three types of context menus: the standard menu
> > (which appears when you right-click in Flash Player), the edit menu
> > (which appears when you right-click a selectable or editable text
> > field), and an error menu (which appears when a SWF file has failed
to
> > load into Flash Player). Only the standard and edit menus can be
> > modified with the ContextMenu class."
> >
> > I have been able to add custom menu items to the "standard menu"
> > however, I'm wondering if anyone knows how to add custom menu items
to
> > the "edit menu" on a flex component, such as a TextArea.
> >
> > The code I am using to add items to the "standard menu" is:
> >
> > var newCM:ContextMenu = new ContextMenu();
> > var newCMI:ContextMenuItem = new ContextMenuItem("New Item");
> > newCM.customItems.push(newCMI);
> >
> > TIA!
> >
> > -Mac
> >
> > 
> >
>

 

Reply via email to