[flexcoders] Re: context menu in a datagrid in flex 4

2013-05-07 Thread Nitin Gopi
Hi All, It worked . If we assign the context menu using the id of datagrid then the context menu works, for example if the id of datagrid is dg, then by using dg.contextmenu = cm. But I wonder why it doesn't work by assigning it directly in datagrid using binding. Thanks Nitin Gopi

[flexcoders] Re: Context Menu

2010-03-03 Thread valdhor
Angelo According to the documentation at http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_4.html - The primary drawback to using the context menu API is that it does not support submenus. But, there are other ways to skin a cat. Check these links out...

[flexcoders] Re: context menu event on tree column of advanced data grid ....

2009-10-30 Thread MicC
Solved this - added context menu within AdvancedDataGroupItemRenderer. --- In flexcoders@yahoogroups.com, MicC chigwel...@... wrote: When a context menu on an ADG is clicked and the ADG cell is not a hierarchy node, the ContextMenuEvent.mouseTarget is ADGItemRenderEX and info about the

[flexcoders] Re: Context Menu mouseTarget Issue

2009-09-03 Thread jmfillman
This worked: myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget)); and myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget.parent)); depending on whether the mouse is over the root Panel component or the child containers added to the panel. The harder part is

RE: [flexcoders] Re: Context Menu mouseTarget Issue

2009-09-03 Thread Alex Harui
...@yahoogroups.com] On Behalf Of jmfillman Sent: Wednesday, September 02, 2009 11:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Context Menu mouseTarget Issue This worked: myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget)); and myCanvas.removeChildAt

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-04-07 Thread jmfillman
I did file a bug with Adobe. Hopefully it'll be addressed soon. Interesting that it was encountered in FlashPlayer 9. I don't recall which version of 9 I had, but I did not encounter this error until I went to FlashPlayer 10. For my application, it is critical that particular conectMenu items

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-04-01 Thread valdhor
Not here. I am still using Flash Player 9.0.124. --- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote: Thank you for the follow-up. The blankMenu is actually a left over from my actual application and wasn't needed for this sample code. This worked fine in FlashPlayer 9, so

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-04-01 Thread valdhor
I think I know why it crashes (Although it should not crash the browser - it should fail with a Flash null object error. You should file a bug). When a right click event happens, a mouse out event happens first (Why? I don't know. Maybe this is a bug too) so your mouseOt function gets called

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-03-31 Thread jmfillman
Thank you for the follow-up. The blankMenu is actually a left over from my actual application and wasn't needed for this sample code. This worked fine in FlashPlayer 9, so must be a bug with 10. JF --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I tried your code and it

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-03-25 Thread valdhor
I tried your code and it crashes my browser here. I could not find a way to stop that behavior in my (Admittedly short) testing. The only thing that jumped out at me was that your blankMenu is a null object as it is never instantiated. Unfortunately, even if it is instantiated, the crashing

[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-03-24 Thread jmfillman
Any suggestions? Am I doing something wrong? JF --- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote: The code below causes both IE and Firefox to crash (haven't tried others). The problem seems to occure when removing an item from a custom context menu. It doesn't even debug,

[flexcoders] Re: Context menu triggers browser crash

2008-07-13 Thread Sid Maskit
You might try running the same behavior from a simple button, instead of from a context menu, since that might give you a sense of where the problem lies: i.e. if it occurs even when you run the behavior off a button, then the problem presumably has nothing to do with the context menu. --- In

Re: [flexcoders] Re: Context menu

2008-06-23 Thread Daniel Freiman
You can't get rid of those two (limitation of the player). - Daniel Freiman On Sat, Jun 21, 2008 at 8:01 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: I am using this: var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); but when I run my program and click on a cell with the

[flexcoders] Re: Context menu

2008-06-21 Thread markgoldin_2000
I am using this: var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); but when I run my program and click on a cell with the right mouse I have my items alone with standard Settings, About ... items. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

[flexcoders] Re: Context Menu Use in PopUp

2008-06-13 Thread jmfillman
Well, yes. The menuItem has an event listener in the parent application that calls a function. I solved it. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: By functions do you mean event listeners? How are you setting it up?

[flexcoders] Re: Context menu in flex

2007-11-17 Thread johantrax
A little examplecode: Start of code //creates a new entry in the contextMenu // which is handled by the (self-written) function doMyCommand(Event) var myCMI:ContextMenuItem; myCMI = new ContextMenuItem(myMenuCommand); myCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, doMyCommand);

[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread andrewalderson650
If you are using a custom item renderer why aren't you just adding the context menu to the item renderer? As a note if you are extending one of the default item renderers they have the mouse disabled in the constructor so this needs to be fixed. --- In flexcoders@yahoogroups.com, tsiesser

[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread tsiesser
Wow - images are not mouse targets. Okay, that's going to be challenging - because I was actually planning on some special actions to occur when the user clicked on the corners of the image. So maybe the transparent sprite will be the key? I'll try it... Thanks! --Tracey --- In

[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread tsiesser
It occurred to me to try adding the context menu to the item renderer, but I wasn't sure what would happen to the blank areas of the TileList, like if there aren't enough data items to fill the entire space... does the list get item renderers with data=null, or are there only renderers where

RE: [flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread Alex Harui
areas of a renderer into separate targets. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tsiesser Sent: Saturday, June 02, 2007 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Context menu mouseTarget vs. itemRenderer

[flexcoders] Re: Context menu with custom cursor

2006-10-05 Thread davcavs
I've currently worked around this issue by punching a small hole at the registration point of the cursor movieclip. This allows the mouse click to pass through to whatever is directly underneath the cursor. My theory is that the cursor movieclip is not a descendant of the application instance on

[flexcoders] Re: context-menu in flex...

2006-06-15 Thread Cristian Pop
Hi everyone, I don't want to hijack this thread but it reminded me about one problem I had with the context menu. Does anyone knows a way to put a check before an item in the context menu ? Flash Player can do it (see Play and loop entries). I could not find anything in the ContextMenu Class.